YouthLearning / XXQG

一个自动完成学习强国每日任务的插件
MIT License
12 stars 3 forks source link

插件启动了但是没有反应 #2

Open Hybrogen opened 2 months ago

Hybrogen commented 2 months ago

xxqg_issue

我按照 readme 安装了插件,写了个这样的启动程序尝试运行了一下

# bot.py
import nonebot
from nonebot.adapters.console import Adapter as ConsoleAdapter  # 避免重复命名

# 初始化 NoneBot
nonebot.init()

# 注册适配器
driver = nonebot.get_driver()
driver.register_adapter(ConsoleAdapter)

# 在这里加载插件
nonebot.load_builtin_plugins("echo")  # 内置插件
nonebot.load_plugin("XXQG")  # 第三方插件
nonebot.load_plugins("plugins")  # 本地插件

if __name__ == "__main__":
    nonebot.run()

内置插件和我自己写了一个简单的本地插件运行都没问题

Image_1725540887326.jpg

xxqg插件看起来是运行了,但是对命令不做任何反应请问是怎么回事

09-05 20:50:19 [SUCCESS] nonebot | NoneBot is initializing...
09-05 20:50:19 [INFO] nonebot | Current Env: prod
09-05 20:50:20 [SUCCESS] nonebot | Succeeded to load plugin "echo" from "nonebot.plugins.echo"
09-05 20:50:20 [SUCCESS] nonebot | Succeeded to load plugin "nonebot_plugin_apscheduler"
09-05 20:50:20 [SUCCESS] nonebot | Succeeded to load plugin "XXQG"
09-05 20:50:20 [SUCCESS] nonebot | Succeeded to load plugin "talk" from "plugins.talk"
09-05 20:50:20 [SUCCESS] nonebot | Running NoneBot...
09-05 20:50:20 [INFO] uvicorn | Started server process [7238]
09-05 20:50:20 [INFO] uvicorn | Waiting for application startup.
09-05 20:50:20 [INFO] nonebot_plugin_apscheduler | Scheduler Started
09-05 20:52:21 [SUCCESS] nonebot | Console unmounted.
09-05 20:52:21 [WARNING] nonebot | Press Ctrl-C for Application exit
^C09-05 20:52:27 [INFO] uvicorn | Shutting down
09-05 20:52:27 [INFO] uvicorn | Waiting for application shutdown.
09-05 20:52:27 [INFO] nonebot_plugin_apscheduler | Scheduler Shutdown
09-05 20:52:27 [SUCCESS] XXQG | [学习强国数据库]◄◄◄◄◄连接已断开✘✘✘✘✘
09-05 20:52:27 [INFO] uvicorn | Application shutdown complete.
09-05 20:52:27 [INFO] uvicorn | Finished server process [7238]

期待您的回复