From d023a4a22ad69b6e735ee23b6e8232cc7053421b Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Wed, 16 Nov 2022 19:40:24 +0700 Subject: [PATCH] selector on cloop --- commands/cloop.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/cloop.js b/commands/cloop.js index a1afe23..32d8479 100644 --- a/commands/cloop.js +++ b/commands/cloop.js @@ -16,7 +16,7 @@ function clear() { bot.cloops = []; } -function list(bot, discord, channeldc) { +function list(bot, discord, channeldc, selector) { const message = []; if (discord) { @@ -75,7 +75,7 @@ module.exports = { add(args.slice(3).join(' '), args[2], bot); bot.tellraw(selector, [{text: 'Added command ', color: 'white'}, {text: `${args.slice(3).join(' ')}`, color: 'aqua'}, {text: ' with interval ', color: 'white'}, {text: `${args[2]}`, color: 'green'}, {text: ' to the cloops', color: 'white'}]); } else if (args[1] === 'list') { - list(bot); + list(bot, false, null, selector); } else if (args[1] === 'remove') { remove(args[2]); bot.tellraw(selector, [{text: 'Removed cloop '}, {text: args[2], color: 'aqua'}]);