mrmBot-Matrix/commands/encode.js
2019-09-13 15:02:41 -05:00

6 lines
203 B
JavaScript

exports.run = async (message, args) => {
const b64Encoded = Buffer.from(args.join(" ")).toString("base64");
return `\`\`\`\n${b64Encoded}\`\`\``;
};
exports.aliases = ["b64encode", "base64encode"];