fix: asdf

This commit is contained in:
Siwoo Jeon 2023-11-25 11:56:53 +09:00
parent d8d0b453d2
commit 8b70b6a44a
Signed by: migan
GPG key ID: C4151385FFD2082A

View file

@ -8,6 +8,11 @@ export default class extends Command {
} }
public async execute(msg: Message, args: string[]) { public async execute(msg: Message, args: string[]) {
if (!args[0] || !args[1]) {
return await msg.channel.send(
'```\n멒힌아 배워 (등록할 단어) (대답)\n```\n `_`를 대답에 쓰면 공백으로 바뀌ㅇ어요.',
)
}
const command = args[0] const command = args[0]
const result = args[1].replaceAll('_', ' ') const result = args[1].replaceAll('_', ' ')
const ignore = [ const ignore = [
@ -18,6 +23,7 @@ export default class extends Command {
'Migan', 'Migan',
'migan', 'migan',
'간미', '간미',
'삭제',
] ]
const disallowed = ['@everyone', '@here', `<@${config.bot.owner_ID}>`] const disallowed = ['@everyone', '@here', `<@${config.bot.owner_ID}>`]
const db = await msg.client.chatBot.db.getConnection() const db = await msg.client.chatBot.db.getConnection()