forked from Supositware/Haha-Yes
Put 👏 clap 👏 at 👏 every 👏 spaces
This commit is contained in:
parent
d0066d189f
commit
9a410110b3
1 changed files with 23 additions and 0 deletions
23
commands/fun/clap.js
Normal file
23
commands/fun/clap.js
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
const { Command } = require('discord.js-commando');
|
||||||
|
module.exports = class clapCommand extends Command {
|
||||||
|
constructor(client) {
|
||||||
|
super(client, {
|
||||||
|
name: 'clap',
|
||||||
|
group: 'fun',
|
||||||
|
memberName: 'clap',
|
||||||
|
description: `Repeat the text you send with clap`,
|
||||||
|
args: [
|
||||||
|
{
|
||||||
|
key: 'text',
|
||||||
|
prompt: 'What do you want me to say',
|
||||||
|
type: 'string',
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
async run(message, { text }) {
|
||||||
|
let clap = text.replace(/ /g, ' 👏 ');
|
||||||
|
message.delete();
|
||||||
|
message.say(clap);
|
||||||
|
}};
|
Loading…
Reference in a new issue