refactor: 完成MessageSource适配器解耦

This commit is contained in:
Rock Chin
2023-04-21 17:51:58 +08:00
parent 016391c976
commit 160086feb9
7 changed files with 185 additions and 150 deletions
+1 -1
View File
@@ -208,7 +208,7 @@ def start(first_time_init=False):
def run_bot_wrapper():
global known_exception_caught
try:
qqbot.bot.run()
qqbot.adapter.run_sync()
except TypeError as e:
if str(e).__contains__("argument 'debug'"):
logging.error(