mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-12-27 04:15:38 -05:00
Improvements
This commit is contained in:
parent
084e20938f
commit
14b13dd190
@ -19,7 +19,7 @@ async function MPdata(client:TClient, interaction:Discord.ChatInputCommandIntera
|
|||||||
embed.setTitle('Host is not responding.');
|
embed.setTitle('Host is not responding.');
|
||||||
embed.setColor(client.config.embedColorRed);
|
embed.setColor(client.config.embedColorRed);
|
||||||
console.log(client.logTime(), 'DagMP failed to fetch, host didn\'t respond in time.');
|
console.log(client.logTime(), 'DagMP failed to fetch, host didn\'t respond in time.');
|
||||||
return interaction.reply('Server didn\'t respond in time.');
|
return interaction.reply('Server didn\'t respond in time, please try again later.');
|
||||||
} return FSserver
|
} return FSserver
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ export default {
|
|||||||
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.'})
|
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`',
|
||||||
'**Crossplay server**',
|
'**Crossplay server**',
|
||||||
`**Map:** ${FSserver2.data.server.mapName.length == 0 ? 'Null Island' : FSserver2.data.server.mapName}`,
|
`**Map:** ${FSserver2.data.server.mapName.length == 0 ? 'Null Island' : FSserver2.data.server.mapName}`,
|
||||||
|
@ -29,7 +29,7 @@ export default {
|
|||||||
const embedArray = [];
|
const embedArray = [];
|
||||||
let title = 'Member';
|
let title = 'Member';
|
||||||
if (member.user.bot) title = 'Bot';
|
if (member.user.bot) title = 'Bot';
|
||||||
else if (member.user.id == interaction.guild.ownerId) title = ':crown: Server Owner';
|
else if (member.user.id === interaction.guild.ownerId) title = ':crown: Server Owner';
|
||||||
|
|
||||||
const embed = new client.embed()
|
const embed = new client.embed()
|
||||||
.setColor(member.displayColor || client.config.embedColor)
|
.setColor(member.displayColor || client.config.embedColor)
|
||||||
|
Loading…
Reference in New Issue
Block a user