Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
v1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
iwa authored Aug 15, 2020
2 parents c056e73 + 8256ac4 commit 42301ed
Show file tree
Hide file tree
Showing 46 changed files with 84 additions and 77 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kwako",
"version": "1.0.3",
"version": "1.0.4",
"description": "",
"main": "build/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/actions/cry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports.run = async (bot: Client, msg: Message, args: any, db: any, log:

return msg.channel.send(embed)
.then(() => {
log.info({msg: 'cry', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id});
log.info({msg: 'cry', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }});
})
.catch(console.error);
};
Expand Down
2 changes: 1 addition & 1 deletion src/commands/actions/facepalm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports.run = async (bot: Client, msg: Message, args: any, db: any, log:

return msg.channel.send(embed)
.then(() => {
log.info({msg: 'facepalm', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id});
log.info({msg: 'facepalm', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }});
})
.catch(log.error);
};
Expand Down
2 changes: 1 addition & 1 deletion src/commands/actions/highfive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l
await db.collection('user').updateOne({ '_id': { $eq: mention.id } }, { $inc: { highfive: 1 } });
return msg.channel.send(embed)
.then(() => {
log.info({msg: 'highfive', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id});
log.info({msg: 'highfive', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }});
})
.catch(log.error);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/actions/wave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports.run = async (bot: Client, msg: Message, args: any, db: any, log:

return msg.channel.send(embed)
.then(() => {
log.info({msg: 'wave', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id});
log.info({msg: 'wave', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }});
})
.catch(log.error);
};
Expand Down
2 changes: 1 addition & 1 deletion src/commands/config/addembed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l

await db.collection('msg').insertOne({ _id: sent.id, channel: sent.channel.id })

log.info({msg: 'addembed', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id})
log.info({msg: 'addembed', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }})
};

module.exports.help = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/config/addlevelrole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l
if (previous)
await msg.channel.send(`When I'll give this role, I'll remove <@&${previous}>.`)

log.info({msg: 'addlevelrole', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id, level: { id: args[0], role: role }})
log.info({msg: 'addlevelrole', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }, level: { id: args[0], role: role }})
};

module.exports.help = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/config/addrole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l

await db.collection('msg').updateOne({ _id: args[0] }, { $push: { roles: { "id": role, "emote": emote } } })

log.info({msg: 'addrole', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id, role: { id: role, emote: emote }})
log.info({msg: 'addrole', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }, role: { id: role, emote: emote }})
};

module.exports.help = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/config/delembed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l

await db.collection('msg').deleteOne({ _id: args[0] })

log.info({msg: 'delembed', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id})
log.info({msg: 'delembed', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }})
};

module.exports.help = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/config/dellevelrole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l

await msg.channel.send(`I'll no longer give a role when members achieve the level **${args[0]}**.`);

log.info({msg: 'dellevelrole', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id, level: args[0]})
log.info({msg: 'dellevelrole', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }, level: args[0]})
};

module.exports.help = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/config/delrole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l

await db.collection('msg').updateOne({ _id: args[0] }, { $pull: { roles: { "emote": emote } } })

log.info({msg: 'delrole', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id})
log.info({msg: 'delrole', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }})
};

module.exports.help = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/config/disable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l
}
})

log.info({msg: 'disable', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id, command: cmd.help.name})
log.info({msg: 'disable', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }, command: cmd.help.name})
};

module.exports.help = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/config/disabled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l

await msg.channel.send(embed)

log.info({msg: 'disabled', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id})
log.info({msg: 'disabled', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }})
};

module.exports.help = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/config/editembed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l
}
}

log.info({msg: 'editembed', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id})
log.info({msg: 'editembed', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }})
};

module.exports.help = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/config/enable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l
}
})

log.info({msg: 'enable', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id})
log.info({msg: 'enable', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }})
};

module.exports.help = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/config/setconf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports.run = async (bot: Client, msg: Message, args: any, db: any, log:

await msg.channel.send(`**☁️ Please now use Kwako Web Dashboard to configure the bot**\nhttps://kwako.iwa.sh`);

log.info({msg: 'setconf', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id})
log.info({msg: 'setconf', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }})
};

module.exports.help = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/games/8ball.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: any,
const embed = new MessageEmbed();
embed.setTitle(`🎱 ${reply[r]}`)
embed.setColor('GREY')
log.info({msg: '8ball', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id})
log.info({msg: '8ball', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }})
return msg.channel.send(embed)
};

Expand Down
2 changes: 1 addition & 1 deletion src/commands/games/flip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports.run = (bot: Client, msg: Message, args: any, db: any, log: Logger
msg.channel.send({ "embed": { "title": ":large_blue_diamond: **Heads**" } })
else
msg.channel.send({ "embed": { "title": ":large_orange_diamond: **Tails**" } })
return log.info({msg: 'flip', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id})
return log.info({msg: 'flip', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }})
};

module.exports.help = {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/games/roll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports.run = (bot: Client, msg: Message, args: string[], db: any, log: L
"color": 5601658
}
})
.then(() => { log.info({msg: 'roll', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id, x: x}) })
.then(() => { log.info({msg: 'roll', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }, x: x}) })
.catch(log.error);
} else {
msg.channel.send({
Expand All @@ -20,7 +20,7 @@ module.exports.run = (bot: Client, msg: Message, args: string[], db: any, log: L
"color": 5601658
}
})
.then(() => { log.info({msg: 'roll', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id, x: 100}) })
.then(() => { log.info({msg: 'roll', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }, x: 100}) })
.catch(log.error);
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/commands/games/rps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports.run = (bot: Client, msg: Message, args: string[], db: any, log: L

embed.setDescription(res);

log.info({msg: 'rps', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id})
log.info({msg: 'rps', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }})
return msg.channel.send(embed).catch(log.error)
};

Expand Down
2 changes: 1 addition & 1 deletion src/commands/mod/ban.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports.run = async (bot: Client, msg: Message, args:string[], db: any, l
await msg.channel.send("I can't ban this person!")
}

log.info({msg: 'ban', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id, target: { id: mention.id, name: mention.user.tag, reason: reason }});
log.info({msg: 'ban', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }, target: { id: mention.id, name: mention.user.tag, reason: reason }});
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/commands/mod/kick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports.run = async (bot: Client, msg: Message, args:string[], db: any, l
await msg.channel.send("I can't kick this person!")
}

log.info({msg: 'setconf', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id, target: { id: mention.id, name: mention.user.tag, reason: reason }})
log.info({msg: 'setconf', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }, target: { id: mention.id, name: mention.user.tag, reason: reason }})
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/commands/mod/lock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports.run = async (bot: Client, msg: Message, args: any, db: any, log:

try {
await msg.channel.send(embed);
log.info({msg: 'lock', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id, channel: msg.channel.id})
log.info({msg: 'lock', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }, channel: msg.channel.id})
} catch (err) {
log.error(err);
}
Expand Down
2 changes: 1 addition & 1 deletion src/commands/mod/unlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports.run = async (bot: Client, msg: Message, args: any, db: any, log:

try {
await msg.channel.send(embed);
log.info({msg: 'unlock', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id, channel: msg.channel.id})
log.info({msg: 'unlock', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }, channel: msg.channel.id})
} catch (err) {
log.error(err);
}
Expand Down
4 changes: 2 additions & 2 deletions src/commands/profile/fc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l
if (msg.mentions.everyone) return;
let mention = msg.mentions.users.first()
if (!mention) return;
log.info({msg: 'fc', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id, target: { id: mention.id, name: mention.tag }});
log.info({msg: 'fc', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }, target: { id: mention.id, name: mention.tag }});
return printFc(bot, msg, db, mention.id, guildConf.prefix);
} else {
log.info({msg: 'fc', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id, target: { id: msg.author.id, name: msg.author.tag, }});
log.info({msg: 'fc', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }, target: { id: msg.author.id, name: msg.author.tag, }});
return printFc(bot, msg, db, msg.author.id, guildConf.prefix);
}
};
Expand Down
4 changes: 2 additions & 2 deletions src/commands/profile/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async function profileImg(bot: Client, msg: Message, db: Db, log: Logger, id: st
let file = await imGenerator(user);

try {
log.info({msg: 'profile', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id, target: { id: userDiscord.id, name: userDiscord.tag }});
log.info({msg: 'profile', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }, target: { id: userDiscord.id, name: userDiscord.tag }});
return msg.channel.send('', { files: [file] }).then(() => { msg.channel.stopTyping(true) });
} catch (err) {
log.error(err)
Expand Down Expand Up @@ -79,7 +79,7 @@ async function profileImg(bot: Client, msg: Message, db: Db, log: Logger, id: st
let file = await imGenerator(user);

try {
log.info({msg: 'profile', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id, target: { id: userDiscord.id, name: userDiscord.tag }});
log.info({msg: 'profile', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }, target: { id: userDiscord.id, name: userDiscord.tag }});
return msg.channel.send('', { files: [file] }).then(() => { msg.channel.stopTyping(true) });
} catch (err) {
log.error(err)
Expand Down
2 changes: 1 addition & 1 deletion src/commands/profile/setbackground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l
}
})

log.info({msg: 'setbackground', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id, image: url });
log.info({msg: 'setbackground', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }, image: url });
};

module.exports.help = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/profile/setbirthday.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l
embed.setColor('AQUA')

try {
log.info({msg: 'setbirthday', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id, date: today});
log.info({msg: 'setbirthday', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }, date: today});
return msg.channel.send(embed);
} catch (err) {
log.error(err);
Expand Down
4 changes: 2 additions & 2 deletions src/commands/profile/setfc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l
log.error(ex)
}
}
log.info({msg: 'setfc', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id, fc: 'off'});
log.info({msg: 'setfc', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }, fc: 'off'});
return msg.channel.send({
"embed": {
"author": {
Expand All @@ -43,7 +43,7 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l
embed.setTitle(`**${content}**`)
embed.setColor('AQUA')
try {
log.info({msg: 'setfc', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id, fc: content});
log.info({msg: 'setfc', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }, fc: content});
return msg.channel.send(embed);
} catch (err) {
log.error(err);
Expand Down
2 changes: 1 addition & 1 deletion src/commands/suggestions/approve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l

await suggestion.edit(embed);

log.info({msg: 'approve', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id});
log.info({msg: 'approve', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }});

return msg.react('✅');
};
Expand Down
2 changes: 1 addition & 1 deletion src/commands/suggestions/consider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l

await suggestion.edit(embed);

log.info({msg: 'consider', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id});
log.info({msg: 'consider', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }});

return msg.react('✅');
};
Expand Down
2 changes: 1 addition & 1 deletion src/commands/suggestions/deny.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l

await suggestion.edit(embed);

log.info({msg: 'deny', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id});
log.info({msg: 'deny', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }});

return msg.react('✅');
};
Expand Down
2 changes: 1 addition & 1 deletion src/commands/suggestions/implemented.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l

await suggestion.edit(embed);

log.info({msg: 'implemented', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id});
log.info({msg: 'implemented', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }});

return msg.react('✅');
};
Expand Down
2 changes: 1 addition & 1 deletion src/commands/utility/anime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ module.exports.run = (bot: Client, msg: Message, args: string[], db: any, log: L
embed.setColor('BLUE')
embed.setURL(info.siteUrl)

log.info({msg: 'anime', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id, request: req});
log.info({msg: 'anime', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }, request: req});
return msg.channel.send(embed)
}).catch((err: any) => {
log.error(err)
Expand Down
7 changes: 4 additions & 3 deletions src/commands/utility/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l
embed.addField("Usage", `\`${guildConf.prefix}${cmd.help.usage}\``, true);

if (cmd.help.aliases) {
let aliases = [...cmd.help.aliases]
for(let i = 0; i < cmd.help.aliases.length; i++)
cmd.help.aliases[i] = `${guildConf.prefix}${cmd.help.aliases[i]}`;
aliases[i] = `${guildConf.prefix}${cmd.help.aliases[i]}`;

embed.addField("Aliases", `${cmd.help.aliases.toString()}`, true);
embed.addField("Aliases", `${aliases.toString()}`, true);
}

embed.addField("Description", `${cmd.help.desc}`);
Expand All @@ -79,7 +80,7 @@ module.exports.run = async (bot: Client, msg: Message, args: string[], db: Db, l
} else
sendHelp(msg, guildConf);

log.info({msg: 'help', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id});
log.info({msg: 'help', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }});
}

module.exports.help = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/utility/invite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports.run = async (bot: Client, msg: Message, args: any, db: any, log:
"description": "https://kwako.iwa.sh/",
"color": 16774804}
})
.then(() => { log.info({msg: 'invite', author: { id: msg.author.id, name: msg.author.tag }, guild: msg.guild.id}) })
.then(() => { log.info({msg: 'invite', author: { id: msg.author.id, name: msg.author.tag }, guild: { id: msg.guild.id, name: msg.guild.name }}) })
.catch(log.error);
};

Expand Down
Loading

0 comments on commit 42301ed

Please sign in to comment.