mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-12 08:03:09 -04:00
remove analytics, update stats command
This commit is contained in:
parent
72789e644f
commit
a24cbf5a36
4 changed files with 55 additions and 106 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue