From 07309b366e0714d459cc6a069b6d9fcc321f576e Mon Sep 17 00:00:00 2001 From: Supositware Date: Fri, 8 Feb 2019 19:08:17 +0100 Subject: [PATCH] random thingy --- commands/general/clap.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/general/clap.js b/commands/general/clap.js index 48193335..be0addc6 100644 --- a/commands/general/clap.js +++ b/commands/general/clap.js @@ -1,5 +1,5 @@ const { Command } = require('discord-akairo'); - +const rand = require('../../rand.js'); class ClapCommand extends Command { constructor() { super('clap', { @@ -23,6 +23,8 @@ class ClapCommand extends Command { async exec(message, args) { if (!args.text) return; + args.text = rand.random(args.text, message); + let clap = args.text.replace(/ /g, ' 👏 '); message.delete(); message.channel.send(`${clap} 👏`);