forked from Supositware/Haha-Yes
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
606 B
JavaScript
23 lines
606 B
JavaScript
6 years ago
|
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);
|
||
|
}
|
||
|
};
|