mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 16:19:12 +02:00
Command Uses
This commit is contained in:
@@ -60,6 +60,8 @@ client.on('warn', console.warn);
|
||||
|
||||
client.on('commandError', (command, err) => console.error(command.name, err));
|
||||
|
||||
client.on('commandRun', command => ++command.uses);
|
||||
|
||||
client.on('message', async msg => {
|
||||
if (!msg.guild || msg.author.bot) return;
|
||||
const topic = msg.guild.defaultChannel.topic || '';
|
||||
|
||||
Reference in New Issue
Block a user