mrmBot-Matrix/commands/fullwidth.js

7 lines
330 B
JavaScript
Raw Normal View History

2019-09-13 20:02:41 +00:00
exports.run = async (message, args) => {
if (args.length === 0) return `${message.author.mention}, you need to provide some text to convert to fullwidth!`;
return args.join("").replace(/[A-Za-z0-9]/g, (s) => { return String.fromCharCode(s.charCodeAt(0) + 0xFEE0); });
};
exports.aliases = ["aesthetic", "aesthetics", "aes"];