fix: Add ignore words
This commit is contained in:
parent
f13b6b3e42
commit
a5def02140
4 changed files with 12 additions and 8 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -139,3 +139,5 @@ db/
|
||||||
|
|
||||||
.idea/
|
.idea/
|
||||||
./database/
|
./database/
|
||||||
|
|
||||||
|
.DS_Store
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "muffinbot",
|
"name": "muffinbot",
|
||||||
"version": "2.0.0-oreo.r240617a",
|
"version": "2.0.0-oreo.r240714a",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -15,16 +15,18 @@ export default class extends Command {
|
||||||
}
|
}
|
||||||
const command = args[0].replaceAll('_', ' ')
|
const command = args[0].replaceAll('_', ' ')
|
||||||
const result = args[1].replaceAll('_', ' ')
|
const result = args[1].replaceAll('_', ' ')
|
||||||
|
const commands: string[] = []
|
||||||
|
|
||||||
|
msg.client.modules.map(a => commands.push(a.name))
|
||||||
|
|
||||||
const ignore = [
|
const ignore = [
|
||||||
'학습데이터량',
|
...commands,
|
||||||
'봇꺼',
|
|
||||||
'테스트',
|
|
||||||
'미간',
|
'미간',
|
||||||
'Migan',
|
'Migan',
|
||||||
'migan',
|
'migan',
|
||||||
'간미',
|
'간미',
|
||||||
'삭제',
|
'dokdo',
|
||||||
'삭제',
|
'dok',
|
||||||
]
|
]
|
||||||
const disallowed = ['@everyone', '@here', `<@${config.bot.owner_ID}>`]
|
const disallowed = ['@everyone', '@here', `<@${config.bot.owner_ID}>`]
|
||||||
const db = msg.client.chatBot.db
|
const db = msg.client.chatBot.db
|
||||||
|
|
|
@ -71,7 +71,7 @@ export default class ChatBot {
|
||||||
|
|
||||||
setInterval(async () => {
|
setInterval(async () => {
|
||||||
await this.db.ping()
|
await this.db.ping()
|
||||||
}, 600000)
|
}, 3_600_000)
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue