diff --git a/commands/decode.js b/commands/decode.js index ce3ed26..ef188ed 100644 --- a/commands/decode.js +++ b/commands/decode.js @@ -1,7 +1,9 @@ +const { clean } = require("../utils/misc.js"); + exports.run = async (message, args) => { if (args.length === 0) return `${message.author.mention}, you need to provide a string to decode!`; const b64Decoded = Buffer.from(args.join(" "), "base64").toString("utf-8"); - return `\`\`\`\n${b64Decoded}\`\`\``; + return `\`\`\`\n${await clean(b64Decoded)}\`\`\``; }; exports.aliases = ["b64decode", "base64decode"];