13 lines
308 B
JavaScript
13 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'
|
||
|
};
|