*final* final changes
This commit is contained in:
parent
3730691ba2
commit
ae1406b518
1 changed files with 3 additions and 1 deletions
|
@ -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"];
|
||||||
|
|
Loading…
Reference in a new issue