cardboardbox/cmds_SharpBot/Fun/reverse.js
2019-12-13 09:13:45 -05:00

12 lines
308 B
JavaScript

exports.run = function (bot, msg, args) {
if (args.length < 1) {
throw 'You must input text to be reversed!';
}
msg.edit(args.join(' ').split('').reverse().join(''));
};
exports.info = {
name: 'reverse',
usage: 'reverse <text>',
description: 'Reverses the text you input'
};