diff --git a/public_bot.js b/public_bot.js index 4741175..1ab6f55 100644 --- a/public_bot.js +++ b/public_bot.js @@ -170,7 +170,7 @@ const commands = [ new SlashCommandBuilder().setName('get-connection-hash-sftp').setDescription('Get the SFTP connection hash'), new SlashCommandBuilder().setName('list-players').setDescription('Get a list of online players'), new SlashCommandBuilder().setName('my-website-url').setDescription('Get the server website URL'), - new SlashCommandBuilder().setName('bluemap-url ').setDescription('Get the server map URL'), + new SlashCommandBuilder().setName('bluemap-url').setDescription('Get the server map URL'), new SlashCommandBuilder().setName('ban').setDescription('Ban a player by username').addStringOption(option => option.setName('username').setDescription('Player username').setRequired(true)), new SlashCommandBuilder().setName('unban').setDescription('Unban a player by username').addStringOption(option => option.setName('username').setDescription('Player username').setRequired(true)), new SlashCommandBuilder().setName('send-message').setDescription('Send a message to all players').addStringOption(option => option.setName('message').setDescription('Message to send').setRequired(true)), @@ -359,7 +359,7 @@ client.on('interactionCreate', async interaction => { handleResponse(websiteURL, interaction); break; - case 'bluemap-url ': + case 'bluemap-url': const mapURL = await handleApiCall(() => MyMC.getMapURL(), userId, interaction); handleResponse(mapURL, interaction); break;