From a50e02b525696379df49063390a4ce55afdcfb49 Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Tue, 18 Sep 2018 15:35:06 +0200 Subject: [PATCH] added say command --- commands/fun/say.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 commands/fun/say.js diff --git a/commands/fun/say.js b/commands/fun/say.js new file mode 100644 index 00000000..a6536fb5 --- /dev/null +++ b/commands/fun/say.js @@ -0,0 +1,24 @@ +const { Command } = require('discord.js-commando'); +const responseObject = require("../../randVid.json"); +module.exports = class sayCommand extends Command { + constructor(client) { + super(client, { + name: 'say', + group: 'fun', + memberName: 'say', + description: `repeat the text`, + args: [ + { + key: 'text', + prompt: 'What do you want me to say', + type: 'string', + } + ] + }); + } + + async run(message, { text }) { + message.delete(); + message.say(text); + } +}; \ No newline at end of file