forked from Supositware/Haha-Yes
random thingy
This commit is contained in:
parent
8f95a637f5
commit
07309b366e
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
const { Command } = require('discord-akairo');
|
const { Command } = require('discord-akairo');
|
||||||
|
const rand = require('../../rand.js');
|
||||||
class ClapCommand extends Command {
|
class ClapCommand extends Command {
|
||||||
constructor() {
|
constructor() {
|
||||||
super('clap', {
|
super('clap', {
|
||||||
|
@ -23,6 +23,8 @@ class ClapCommand extends Command {
|
||||||
async exec(message, args) {
|
async exec(message, args) {
|
||||||
if (!args.text)
|
if (!args.text)
|
||||||
return;
|
return;
|
||||||
|
args.text = rand.random(args.text, message);
|
||||||
|
|
||||||
let clap = args.text.replace(/ /g, ' 👏 ');
|
let clap = args.text.replace(/ /g, ' 👏 ');
|
||||||
message.delete();
|
message.delete();
|
||||||
message.channel.send(`${clap} 👏`);
|
message.channel.send(`${clap} 👏`);
|
||||||
|
|
Loading…
Reference in a new issue