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 = { module.exports = {
name: 'clearchatqueue', name: 'clearchatqueue',
description: 'Clears the bot\'s chat queue', description: 'Clears the bot\'s chat queue',
@ -6,7 +7,7 @@ module.exports = {
trusted: 0, trusted: 0,
execute: function(bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) { execute: function(bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) {
if (bot.queue[0]) { if (bot.queue[0]) {
bot.queue = []; bot.chatQueue = [];
} }
}, },
}; };