Command Uses

This commit is contained in:
Daniel Odendahl Jr
2017-08-02 21:23:22 +00:00
parent 20ff3f6f0e
commit 777059c18b
4 changed files with 37 additions and 1 deletions
+2
View File
@@ -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 || '';