refactor: 移除对机器人自身用户ID的特殊处理,统一使用QQ号进行比较

This commit is contained in:
Windpicker-owo
2025-11-12 17:33:51 +08:00
parent 59965bb1ee
commit 1afcf51d61
9 changed files with 351 additions and 81 deletions

View File

@@ -89,7 +89,7 @@ async def find_messages(
query = query.where(*conditions)
if filter_bot:
query = query.where(Messages.user_id != global_config.bot.qq_account)
query = query.where(Messages.user_id != str(global_config.bot.qq_account))
if filter_command:
query = query.where(not_(Messages.is_command))