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

nvm, this works now.

This commit is contained in:
toast-ts 2023-03-12 12:56:05 +11:00
parent 421517514d
commit 81e810fbce

View File

@ -58,6 +58,7 @@ export default {
const FSserver2 = await MPdata(client, interaction, embed2) const FSserver2 = await MPdata(client, interaction, embed2)
if (!FSserver2?.data) return console.log('FSserver2 failed - info') if (!FSserver2?.data) return console.log('FSserver2 failed - info')
const MPURL = await client.MPServer._content.findById(interaction.guildId); const MPURL = await client.MPServer._content.findById(interaction.guildId);
if (FSserver2.data.server.name.length == 0) embed2.setFooter({text: 'Server is currently offline.'})
interaction.reply({embeds: [embed2.setDescription([ interaction.reply({embeds: [embed2.setDescription([
`**Server name**: \`${FSserver2?.data.server.name.length == 0 ? '\u200b' : FSserver2?.data.server.name}\``, `**Server name**: \`${FSserver2?.data.server.name.length == 0 ? '\u200b' : FSserver2?.data.server.name}\``,
'**Password:** `mf4700`', '**Password:** `mf4700`',
@ -67,7 +68,6 @@ export default {
'**Filters:** [Click here](https://discord.com/channels/468835415093411861/468835769092669461/926581585938120724)', '**Filters:** [Click here](https://discord.com/channels/468835415093411861/468835769092669461/926581585938120724)',
'Please see <#543494084363288637> for additional information.' 'Please see <#543494084363288637> for additional information.'
].join('\n'))]}); ].join('\n'))]});
if (FSserver2.data.server.name.length == 0) embed2.setFooter({text: 'Server is currently offline.'})
}, },
url: async()=>{ url: async()=>{
if (client.config.mainServer.id == interaction.guildId) { if (client.config.mainServer.id == interaction.guildId) {