fix: Add ignore words

This commit is contained in:
Siwoo Jeon 2024-07-14 00:45:12 +09:00
parent f13b6b3e42
commit a5def02140
Signed by: migan
GPG key ID: C4151385FFD2082A
4 changed files with 12 additions and 8 deletions

2
.gitignore vendored
View file

@ -139,3 +139,5 @@ db/
.idea/
./database/
.DS_Store

View file

@ -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": {

View file

@ -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

View file

@ -71,7 +71,7 @@ export default class ChatBot {
setInterval(async () => {
await this.db.ping()
}, 600000)
}, 3_600_000)
return this
}
}