mirror of https://github.com/thaldrin/thaldrin.git
fix invite command
This commit is contained in:
parent
db49fddf9b
commit
724d1e6a1d
|
@ -2,6 +2,7 @@ import Command from '../../handler/structures/Command';
|
|||
import { Context } from '../../utils/types';
|
||||
import lingua from '../../utils/lingua';
|
||||
import embed from '../../utils/embed';
|
||||
import replace from '../../utils/replace';
|
||||
|
||||
export = class Invite extends Command {
|
||||
constructor() {
|
||||
|
@ -16,7 +17,7 @@ export = class Invite extends Command {
|
|||
async command(ctx: Context) {
|
||||
// TODO: generate custom invites for every server
|
||||
// @ts-ignore
|
||||
ctx.channel.send(`${lingua[ctx.settings.locale].INVITE_STRING}:\n<${ctx.config.variables.invite}>`)
|
||||
ctx.channel.send(`${replace(/BOT/gi, ctx.config.variables.name, lingua[ctx.settings.locale].INVITE_STRING)}:\n<${ctx.config.variables.invite}>`)
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue