mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 00:07:36 +02:00
Command Leaderboard
This commit is contained in:
@@ -67,6 +67,8 @@ client.on('warn', console.warn);
|
||||
|
||||
client.on('commandError', (command, err) => console.error(command.name, err));
|
||||
|
||||
client.on('commandRun', command => ++command.uses);
|
||||
|
||||
client.on('guildCreate', async () => {
|
||||
const guilds = await client.shard.fetchClientValues('guilds.size');
|
||||
const count = guilds.reduce((prev, val) => prev + val, 0);
|
||||
|
||||
Reference in New Issue
Block a user