forked from Supositware/Haha-Yes
Show execution time
parent
8af6023267
commit
7f0453b3a5
@ -0,0 +1,16 @@
|
||||
const { Listener } = require('discord-akairo');
|
||||
|
||||
class commandFinishedListener extends Listener {
|
||||
constructor() {
|
||||
super('commandFinished', {
|
||||
emitter: 'commandHandler',
|
||||
event: 'commandFinished'
|
||||
});
|
||||
}
|
||||
|
||||
async exec(message, command) {
|
||||
console.timeEnd(command.id);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = commandFinishedListener;
|
Loading…
Reference in New Issue