command logs because fuck monox

This commit is contained in:
ry 2020-01-06 14:55:04 +01:00
parent 4b578c8af9
commit 02c51912b0
3 changed files with 8 additions and 2 deletions

View file

@ -110,7 +110,9 @@ module.exports = {
timestamps.set(msg.author.id, now); timestamps.set(msg.author.id, now);
setTimeout(() => timestamps.delete(msg.author.id), cooldownAmount); setTimeout(() => timestamps.delete(msg.author.id), cooldownAmount);
cmd.command(ctx).then(() => {}).catch((err) => { cmd.command(ctx).then(() => {
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))
}).catch((err) => {
if (!cmd.name.includes('e926') || !cmd.name.includes('e621')) { if (!cmd.name.includes('e926') || !cmd.name.includes('e621')) {
trello trello
.addCard( .addCard(

View file

@ -16,7 +16,8 @@ module.exports = class Blacklist extends Command {
console.log(ctx.args) console.log(ctx.args)
let ACTION = ctx.args[0] let ACTION = ctx.args[0]
let ID = ctx.args[1] let ID = ctx.args[1]
let REASON = ctx.args[2] let REASON = ctx.args.shift().shift().join(' ')
// let REASON = ctx.args[2]
let X = await ctx.utils.db.blacklist(ID, ACTION, REASON) let X = await ctx.utils.db.blacklist(ID, ACTION, REASON)
console.log(X) console.log(X)

View file

@ -14,6 +14,9 @@ module.exports = {
id: '318044130796109825', id: '318044130796109825',
nick: 'ry' nick: 'ry'
}], }],
logs: {
usage: '663740167684620318'
},
contributors: [{ contributors: [{
id: '150745989836308480', id: '150745989836308480',
nick: 'Cyn', nick: 'Cyn',