mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 12:21:00 -05:00
Compare commits
2 Commits
3bd917a814
...
ccaa1579b9
Author | SHA1 | Date | |
---|---|---|---|
|
ccaa1579b9 | ||
|
a0e2ebdac1 |
@ -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.commit.url}>)`,
|
`[Commit pulled](<${repoData.html_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',
|
||||||
|
@ -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}\``, inline: true},
|
{name: 'Name', value: `\`${DSS?.server.name}\``},
|
||||||
{name: 'Players', value: `${DSS.slots.used}/${DSS.slots.capacity}`, inline: true},
|
{name: 'Players', value: `${DSS.slots.used}/${DSS.slots.capacity}`},
|
||||||
{name: 'Map', value: DSS?.server.mapName, inline: true}
|
{name: 'Map', value: DSS?.server.mapName}
|
||||||
).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.')
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user