diff --git a/messagecommands/banlist.js b/messagecommands/banlist.js index e960d58..d6dfe72 100644 --- a/messagecommands/banlist.js +++ b/messagecommands/banlist.js @@ -74,7 +74,7 @@ async function list(message) { const player2 = await fetch(`https://api.mojang.com/user/profiles/${player.id}/names`).then(response => response.json()).catch( reason => {}); str += 'IGN: ' + player2[player2.length - 1].name + '\n'; } - return await message.reply(str); + return await message.reply(str.replace(/[*_~]/g, "\\$&")); } async function search(id, message) { diff --git a/messagecommands/check.js b/messagecommands/check.js index ecad7ef..a1872ff 100644 --- a/messagecommands/check.js +++ b/messagecommands/check.js @@ -12,7 +12,7 @@ const token = require('../index.js'); if(message.channel != '795130167696556093' && message.channel != '728402518014689333') return; const igns = command.slice(1); const players = []; - let result = ''; + let result = '```\n'; for(const ign of igns) { const player = await fetch(`https://api.mojang.com/users/profiles/minecraft/${ign}`).then(response => response.json()).catch( reason => {}); if(player) { @@ -58,6 +58,6 @@ const token = require('../index.js'); result += '\t' + player.name + ' (**Banlist**)\n'; } } - await message.channel.send(result); + await message.channel.send(result + '```'); }, }; \ No newline at end of file