Haha-Yes/commands/fun/say.js

23 lines
606 B
JavaScript
Raw Normal View History

2018-09-18 15:35:06 +02:00
const { Command } = require('discord.js-commando');
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);
}
};