From a5def021404d6245d5d3ec5d71f9d6838da769a7 Mon Sep 17 00:00:00 2001 From: Migan178 Date: Sun, 14 Jul 2024 00:45:12 +0900 Subject: [PATCH] fix: Add ignore words --- .gitignore | 4 +++- package.json | 2 +- src/Commands/learn.ts | 12 +++++++----- src/modules/ChatBot.ts | 2 +- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index d68fec6..8bcc54e 100644 --- a/.gitignore +++ b/.gitignore @@ -138,4 +138,6 @@ config.json db/ .idea/ -./database/ \ No newline at end of file +./database/ + +.DS_Store \ No newline at end of file diff --git a/package.json b/package.json index 27ca05e..6a4c668 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "muffinbot", - "version": "2.0.0-oreo.r240617a", + "version": "2.0.0-oreo.r240714a", "main": "dist/index.js", "private": true, "dependencies": { diff --git a/src/Commands/learn.ts b/src/Commands/learn.ts index 03a6ef7..db448d8 100644 --- a/src/Commands/learn.ts +++ b/src/Commands/learn.ts @@ -15,16 +15,18 @@ export default class extends Command { } const command = args[0].replaceAll('_', ' ') const result = args[1].replaceAll('_', ' ') + const commands: string[] = [] + + msg.client.modules.map(a => commands.push(a.name)) + const ignore = [ - '학습데이터량', - '봇꺼', - '테스트', + ...commands, '미간', 'Migan', 'migan', '간미', - '삭제', - '삭제', + 'dokdo', + 'dok', ] const disallowed = ['@everyone', '@here', `<@${config.bot.owner_ID}>`] const db = msg.client.chatBot.db diff --git a/src/modules/ChatBot.ts b/src/modules/ChatBot.ts index e34e703..d5526a3 100644 --- a/src/modules/ChatBot.ts +++ b/src/modules/ChatBot.ts @@ -71,7 +71,7 @@ export default class ChatBot { setInterval(async () => { await this.db.ping() - }, 600000) + }, 3_600_000) return this } }