Skip to content

Commit

Permalink
兼容pydanticv1
Browse files Browse the repository at this point in the history
  • Loading branch information
huangwenlong06 committed Sep 4, 2024
1 parent e6717d2 commit 3c7e053
Show file tree
Hide file tree
Showing 4 changed files with 831 additions and 977 deletions.
6 changes: 2 additions & 4 deletions bot.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import nonebot
from nonebot.adapters.qqguild import Adapter as QQGuildAdapter
from nonebot.adapters.onebot.v11 import Adapter as OneBotV11Adapter
from nonebot.adapters.console import Adapter as ConsoleAdapter

nonebot.init()

driver = nonebot.get_driver()
driver.register_adapter(OneBotV11Adapter)
driver.register_adapter(QQGuildAdapter)
driver.register_adapter(ConsoleAdapter)

nonebot.load_plugin("nonebot_plugin_access_control")
nonebot.load_plugin("nonebot_plugin_ac_demo")
Expand Down
Loading

0 comments on commit 3c7e053

Please sign in to comment.