Merge remote-tracking branch 'origin/master'
commit
f0d9b853c5
@ -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;
|
@ -0,0 +1,16 @@
|
||||
const { Listener } = require('discord-akairo');
|
||||
|
||||
class unhandledRejectionListener extends Listener {
|
||||
constructor() {
|
||||
super('uncaughtException', {
|
||||
emitter: 'process',
|
||||
event: 'uncaughtException'
|
||||
});
|
||||
}
|
||||
|
||||
async exec(error) {
|
||||
return console.error(`\x1b[31mUncaughtException: ${error}\x1b[37m`);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = unhandledRejectionListener;
|
Loading…
Reference in New Issue