From 8b70b6a44ac7bed7f128cefebf3c32427c0dd78d Mon Sep 17 00:00:00 2001 From: Migan178 Date: Sat, 25 Nov 2023 11:56:53 +0900 Subject: [PATCH] fix: asdf --- src/Commands/learn.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Commands/learn.ts b/src/Commands/learn.ts index 10e6bfb..96e6d5b 100644 --- a/src/Commands/learn.ts +++ b/src/Commands/learn.ts @@ -8,6 +8,11 @@ export default class extends Command { } 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 result = args[1].replaceAll('_', ' ') const ignore = [ @@ -18,6 +23,7 @@ export default class extends Command { 'Migan', 'migan', '간미', + '삭제', ] const disallowed = ['@everyone', '@here', `<@${config.bot.owner_ID}>`] const db = await msg.client.chatBot.db.getConnection()