1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 16:30:58 -05:00

Compare commits

..

No commits in common. "ccaa1579b986d8cf8610f04659f9c5871745c010" and "3bd917a81419f1fcc90ad242d63fb8794a04fcfb" have entirely different histories.

2 changed files with 4 additions and 4 deletions

View File

@ -71,7 +71,7 @@ export default class Developer {
deletion: repoData.stats.deletions.toLocaleString('en-US') deletion: repoData.stats.deletions.toLocaleString('en-US')
}; };
const msgBody = MessageTool.concatMessage( const msgBody = MessageTool.concatMessage(
`[Commit pulled](<${repoData.html_url}>)`, `[Commit pulled](<${repoData.commit.url}>)`,
`Message: **${repoData.commit.message.length === 0 ? '*No commit message*' : repoData.commit.message}**`, `Message: **${repoData.commit.message.length === 0 ? '*No commit message*' : repoData.commit.message}**`,
`Author: **${repoData.commit.author.name}**`, `Author: **${repoData.commit.author.name}**`,
'Changes', 'Changes',

View File

@ -87,9 +87,9 @@ export default class MP {
if (!DSS) return console.log('Endpoint failed - status'); if (!DSS) return console.log('Endpoint failed - status');
if (DSS.server.name.length > 0) { if (DSS.server.name.length > 0) {
await interaction.reply({embeds: [new client.embed().setColor(client.config.embedColor).addFields( await interaction.reply({embeds: [new client.embed().setColor(client.config.embedColor).addFields(
{name: 'Name', value: `\`${DSS?.server.name}\``}, {name: 'Name', value: `\`${DSS?.server.name}\``, inline: true},
{name: 'Players', value: `${DSS.slots.used}/${DSS.slots.capacity}`}, {name: 'Players', value: `${DSS.slots.used}/${DSS.slots.capacity}`, inline: true},
{name: 'Map', value: DSS?.server.mapName} {name: 'Map', value: DSS?.server.mapName, inline: true}
).setFooter({text: `Version: ${DSS?.server.version} | Time: ${`${('0'+Math.floor((DSS?.server.dayTime/3600/1000))).slice(-2)}:${('0'+Math.floor((DSS?.server.dayTime/60/1000)%60)).slice(-2)}`}`})]}) ).setFooter({text: `Version: ${DSS?.server.version} | Time: ${`${('0'+Math.floor((DSS?.server.dayTime/3600/1000))).slice(-2)}:${('0'+Math.floor((DSS?.server.dayTime/60/1000)%60)).slice(-2)}`}`})]})
} else return interaction.reply('Server is currently offline.') } else return interaction.reply('Server is currently offline.')
}, },