chomens-bot-js/commands/clearchatqueue.js

18 lines
330 B
JavaScript

/* eslint-disable max-len */
module.exports = {
name: 'clearchatqueue',
description: 'Clears the bot\'s chat queue',
alias: ['ccq'],
usage: '',
trusted: 0,
execute (bot) {
if (bot.queue[0]) {
bot.chatQueue = []
}
},
discordExecute (bot) {
if (bot.queue[0]) {
bot.chatQueue = []
}
}
}