Snake Speak Command

This commit is contained in:
Daniel Odendahl Jr
2017-09-22 23:10:56 +00:00
parent db036990f9
commit 760901e801
4 changed files with 31 additions and 1 deletions
+28
View File
@@ -0,0 +1,28 @@
const Command = require('../../structures/Command');
module.exports = class SnakeSpeakCommand extends Command {
constructor(client) {
super(client, {
name: 'snake-speak',
aliases: ['snek-speak'],
group: 'text-edit',
memberName: 'snake-speak',
description: 'Convertsssss text to sssssnake ssssspeak.',
args: [
{
key: 'text',
prompt: 'What text would you like to convert to sssssnake ssssspeak?',
type: 'string',
validate: text => {
if (text.replace(/s/gi, 'sssss').length < 2000) return true;
return 'Invalid text, your text is too long.';
}
}
]
});
}
run(msg, { text }) {
return msg.say(text.replace(/s/gi, 'sssss'));
}
};