selector on cloop

This commit is contained in:
ChomeNS 2022-11-16 19:40:24 +07:00
parent e7d75fab44
commit d023a4a22a

View file

@ -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'}]);