2019-09-13 20:02:41 +00:00
|
|
|
exports.run = async (message, args) => {
|
2019-12-05 16:58:46 +00:00
|
|
|
if (args.length === 0) return `${message.author.mention}, you need to provide a string to decode!`;
|
2019-09-13 20:02:41 +00:00
|
|
|
const b64Decoded = Buffer.from(args.join(" "), "base64").toString("utf-8");
|
|
|
|
return `\`\`\`\n${b64Decoded}\`\`\``;
|
|
|
|
};
|
|
|
|
|
|
|
|
exports.aliases = ["b64decode", "base64decode"];
|
2019-12-02 20:47:22 +00:00
|
|
|
exports.category = 1;
|
2019-12-05 16:58:46 +00:00
|
|
|
exports.help = "Decodes a Base64 string";
|
|
|
|
exports.params = "[text]";
|