feat: add disallowed mention

This commit is contained in:
Siwoo Jeon 2023-11-24 23:29:48 +09:00
parent e50a348686
commit d8d0b453d2
Signed by: migan
GPG key ID: C4151385FFD2082A

View file

@ -1,5 +1,6 @@
import { Command, LearnData } from '../modules' import { Command, LearnData } from '../modules'
import { Message } from 'discord.js' import { Message } from 'discord.js'
import config from '../../config.json'
export default class extends Command { export default class extends Command {
public constructor() { public constructor() {
@ -18,7 +19,7 @@ export default class extends Command {
'migan', 'migan',
'간미', '간미',
] ]
const disallowed = ['@everyone', '@here'] const disallowed = ['@everyone', '@here', `<@${config.bot.owner_ID}>`]
const db = await msg.client.chatBot.db.getConnection() const db = await msg.client.chatBot.db.getConnection()
const [learn] = await db.execute<LearnData[]>( const [learn] = await db.execute<LearnData[]>(
'SELECT * FROM learn WHERE command = ?;', 'SELECT * FROM learn WHERE command = ?;',