remove error catch thing
This commit is contained in:
parent
6de4923bfd
commit
654e2a23a6
1 changed files with 28 additions and 27 deletions
|
@ -109,7 +109,8 @@ module.exports = {
|
||||||
cmd.command(ctx).then(async () => {
|
cmd.command(ctx).then(async () => {
|
||||||
if (!ctx.config.type.beta) ctx.client.channels.find(c => c.id === vars.logs.usage).send(`${ctx.utils.format.bold(ctx.author.tag)} (${ctx.utils.format.code(ctx.author.id)}) used ${ctx.utils.format.code(cmd.name)} in ${ctx.utils.format.bold(ctx.guild.name)} (${ctx.utils.format.code(ctx.guild.id)}) `).catch(e => console.log(e))
|
if (!ctx.config.type.beta) ctx.client.channels.find(c => c.id === vars.logs.usage).send(`${ctx.utils.format.bold(ctx.author.tag)} (${ctx.utils.format.code(ctx.author.id)}) used ${ctx.utils.format.code(cmd.name)} in ${ctx.utils.format.bold(ctx.guild.name)} (${ctx.utils.format.code(ctx.guild.id)}) `).catch(e => console.log(e))
|
||||||
await ctx.db.backend.add(`usage.${cmd.name}`, 1)
|
await ctx.db.backend.add(`usage.${cmd.name}`, 1)
|
||||||
}).catch((err) => {
|
})
|
||||||
|
/* .catch((err) => {
|
||||||
if (!cmd.name === 'e926' || !cmd.name === 'e621') {
|
if (!cmd.name === 'e926' || !cmd.name === 'e621') {
|
||||||
trello
|
trello
|
||||||
.addCard(
|
.addCard(
|
||||||
|
@ -136,7 +137,7 @@ module.exports = {
|
||||||
.setDescription(`\`${err.message}\`\n\n\`${err}\``)
|
.setDescription(`\`${err.message}\`\n\n\`${err}\``)
|
||||||
.setColor('RED');
|
.setColor('RED');
|
||||||
return ctx.send(ErrorEmb);
|
return ctx.send(ErrorEmb);
|
||||||
});
|
}); */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
Reference in a new issue