添加路由

This commit is contained in:
zhbaor 2023-08-13 19:48:16 +08:00
parent 8f5d31725e
commit 65027933f7

6
bot.py
View file

@ -2,6 +2,7 @@ from pepperbot import PepperBot
from pepperbot.store.meta import BotRoute from pepperbot.store.meta import BotRoute
from apps.wuhu_takeoff import WuHuTakeoff from apps.wuhu_takeoff import WuHuTakeoff
from apps.riic_report_analysis import RIICReportAnalysis
bot = PepperBot(port=5800) bot = PepperBot(port=5800)
@ -20,6 +21,11 @@ bot.apply_routes(
friends=None, friends=None,
handlers=[WuHuTakeoff], handlers=[WuHuTakeoff],
), ),
BotRoute(
groups={"onebot": ["810857924"]},
friends=None,
handlers=[RIICReportAnalysis],
),
] ]
) )