添加路由
This commit is contained in:
parent
8f5d31725e
commit
65027933f7
1 changed files with 6 additions and 0 deletions
6
bot.py
6
bot.py
|
@ -2,6 +2,7 @@ from pepperbot import PepperBot
|
|||
from pepperbot.store.meta import BotRoute
|
||||
|
||||
from apps.wuhu_takeoff import WuHuTakeoff
|
||||
from apps.riic_report_analysis import RIICReportAnalysis
|
||||
|
||||
|
||||
bot = PepperBot(port=5800)
|
||||
|
@ -20,6 +21,11 @@ bot.apply_routes(
|
|||
friends=None,
|
||||
handlers=[WuHuTakeoff],
|
||||
),
|
||||
BotRoute(
|
||||
groups={"onebot": ["810857924"]},
|
||||
friends=None,
|
||||
handlers=[RIICReportAnalysis],
|
||||
),
|
||||
]
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue