chore: remove bad word filter command
This commit is contained in:
3 files changed
+2
-41
No files matched your search
@@ -24,7 +24,6 @@ import cn.rtast.fancybot.commands.parse.BVParseCommand
|
||||
import cn.rtast.fancybot.commands.parse.GitHubParseCommand
|
||||
import cn.rtast.fancybot.commands.parse.ImageURLCommand
|
||||
import cn.rtast.fancybot.commands.parse.ReverseGIFCommand
|
||||
import cn.rtast.fancybot.commands.parse.filterBadWord
|
||||
import cn.rtast.fancybot.commands.record.JiJianCommand
|
||||
import cn.rtast.fancybot.commands.record.JrrpCommand
|
||||
import cn.rtast.fancybot.commands.record.MyNiuziCommand
|
||||
@@ -37,7 +36,6 @@ import cn.rtast.fancybot.entity.enums.WSType
|
||||
import cn.rtast.fancybot.items.BaisiItem
|
||||
import cn.rtast.fancybot.items.HeisiItem
|
||||
import cn.rtast.fancybot.items.SetuItem
|
||||
import cn.rtast.fancybot.util.file.BadWordManager
|
||||
import cn.rtast.fancybot.util.file.ConfigManager
|
||||
import cn.rtast.fancybot.util.file.NiuziManager
|
||||
import cn.rtast.fancybot.util.file.SignManager
|
||||
@@ -62,9 +60,8 @@ class FancyBot : OneBotListener {
|
||||
val senderId = message.sender.userId
|
||||
val msg = message.rawMessage
|
||||
val groupId = message.groupId
|
||||
println("$sender($senderId: $groupId): $msg")
|
||||
|
||||
filterBadWord(message)
|
||||
val messageId = message.messageId
|
||||
println("$sender($senderId: $groupId >>> $messageId): $msg")
|
||||
|
||||
if (message.rawMessage.startsWith("https://github.com/") || message.rawMessage.startsWith("git@github.com:")) {
|
||||
GitHubParseCommand.parse(this, message)
|
||||
@@ -147,7 +144,6 @@ val configManager = ConfigManager()
|
||||
val itemManager = ItemManager()
|
||||
val signManager = SignManager()
|
||||
val niuziManager = NiuziManager()
|
||||
val badWordManager = BadWordManager()
|
||||
|
||||
val items = listOf(
|
||||
HeisiItem(),
|
||||
|
||||
Reference in New Issue
Block a user