formatting

This commit is contained in:
ry 2020-02-16 22:42:41 +01:00
parent 654e2a23a6
commit c0bca7cf4e
2 changed files with 9 additions and 1 deletions

View File

@ -109,7 +109,7 @@ module.exports = {
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))
await ctx.db.backend.add(`usage.${cmd.name}`, 1)
})
}).catch(err => console.error(err))
/* .catch((err) => {
if (!cmd.name === 'e926' || !cmd.name === 'e621') {
trello

8
utils/src/format.js Normal file
View File

@ -0,0 +1,8 @@
module.exports = {
bold: function (str) {
return `**${str}**`
},
code: function (str) {
return `\`${str}\``
}
}