*final* final changes

This commit is contained in:
TheEssem 2020-12-29 22:26:45 -06:00
parent 3730691ba2
commit ae1406b518

View file

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