mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-23 15:47:57 -05:00
selector on cloop
This commit is contained in:
parent
e7d75fab44
commit
d023a4a22a
1 changed files with 2 additions and 2 deletions
|
@ -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'}]);
|
||||
|
|
Loading…
Reference in a new issue