remove analytics, update stats command

This commit is contained in:
derpystuff 2023-01-11 17:04:51 +01:00
parent 72789e644f
commit a24cbf5a36
4 changed files with 55 additions and 106 deletions

View file

@ -55,10 +55,6 @@ const { maintower } = require('./logging');
const { icon } = require('./utils/markdown');
const { editOrReply } = require('./utils/message');
const { track } = require('./analytics')
// analytics
commandClient.on('commandRan', async ({context, command}) => track(command.name))
// Delete command responses if the user chooses to delete their trigger or edits the command away
commandClient.on('commandDelete', async ({context, reply}) => {
if(context.message?.deleted && !reply.deleted || !context.message.content.startsWith(commandPrefix)) reply.delete();