Skip to content

Commit

Permalink
example for SonodaHanami/kusa
Browse files Browse the repository at this point in the history
  • Loading branch information
SonodaHanami committed Jul 9, 2021
1 parent bc66aad commit a64af42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/client/yobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
from .ybplugins import (calender, clan_battle, custom, gacha, group_leave,
homepage, jjc_consult, login, marionette, miner,
push_news, settings, switcher, templating, updater,
web_util, ybdata, yobot_msg)
web_util, ybdata, yobot_msg, kusa)
else:
# 独立版 绝对导入
from ybplugins import (calender, clan_battle, custom, gacha, group_leave,
homepage, jjc_consult, login, marionette, miner,
push_news, settings, switcher, templating, updater,
web_util, ybdata, yobot_msg)
web_util, ybdata, yobot_msg, kusa)

# 本项目构建的框架非常粗糙,不建议各位把时间浪费本项目上
# 如果想开发自己的机器人,建议直接使用 nonebot 框架
Expand Down Expand Up @@ -260,6 +260,7 @@ async def yobot_output(filename):
settings.Setting(**kwargs),
web_util.WebUtil(**kwargs),
clan_battle.ClanBattle(**kwargs),
kusa.Kusa(**kwargs),
]
self.plug_passive = [p for p in plug_all if p.Passive]
self.plug_active = [p for p in plug_all if p.Active]
Expand Down

0 comments on commit a64af42

Please sign in to comment.