bot.chatQueue not bot.queue

This commit is contained in:
ChomeNS 2022-11-20 19:22:15 +07:00
parent 186753cbe2
commit 53912e0b7d

View file

@ -1,3 +1,4 @@
/* eslint-disable max-len */
module.exports = {
name: 'clearchatqueue',
description: 'Clears the bot\'s chat queue',
@ -6,7 +7,7 @@ module.exports = {
trusted: 0,
execute: function(bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) {
if (bot.queue[0]) {
bot.queue = [];
bot.chatQueue = [];
}
},
};