From 14b13dd190dcec9b6bfdbf81e60ef74e241ad254 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Sun, 11 Jun 2023 15:45:28 +1000 Subject: [PATCH] Improvements --- src/commands/mp.ts | 4 ++-- src/commands/whois.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/mp.ts b/src/commands/mp.ts index 1527d6e..28222e3 100644 --- a/src/commands/mp.ts +++ b/src/commands/mp.ts @@ -19,7 +19,7 @@ async function MPdata(client:TClient, interaction:Discord.ChatInputCommandIntera embed.setTitle('Host is not responding.'); embed.setColor(client.config.embedColorRed); 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 } @@ -56,7 +56,7 @@ export default { 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([ - `**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`', '**Crossplay server**', `**Map:** ${FSserver2.data.server.mapName.length == 0 ? 'Null Island' : FSserver2.data.server.mapName}`, diff --git a/src/commands/whois.ts b/src/commands/whois.ts index 151225b..7007ecd 100644 --- a/src/commands/whois.ts +++ b/src/commands/whois.ts @@ -19,7 +19,7 @@ export default { .setColor(client.config.embedColor) .setURL(`https://discord.com/users/${user.id}`) .setThumbnail(user.avatarURL({size:2048}) || user.defaultAvatarURL) - .setTitle(`${user.bot ? 'Bot': 'User'} Info: ${user.username}`) + .setTitle(`${user.bot ? 'Bot' : 'User'} Info: ${user.username}`) .setDescription(`<@${user.id}>\n\`${user.id}\``) .addFields({name: '🔹 Account Creation Date', value: `\n`}) interaction.reply({embeds: [embed]}) @@ -29,7 +29,7 @@ export default { const embedArray = []; let title = 'Member'; 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() .setColor(member.displayColor || client.config.embedColor)