forked from mttu-developers/konabot
摇骰子
This commit is contained in:
12
konabot/plugins/roll_dice/__init__.py
Normal file
12
konabot/plugins/roll_dice/__init__.py
Normal file
@ -0,0 +1,12 @@
|
||||
from nonebot_plugin_alconna import Alconna, Args, Field, UniMessage, on_alconna
|
||||
|
||||
from konabot.plugins.roll_dice.roll_dice import roll_dice
|
||||
from konabot.plugins.weather.fetcher import fetch_radar
|
||||
|
||||
evt = on_alconna(Alconna(
|
||||
"摇骰子"
|
||||
), use_cmd_start=True, use_cmd_sep=False, skip_for_unmatch=True)
|
||||
|
||||
@evt.handle()
|
||||
async def _():
|
||||
await evt.send(await UniMessage().text(await roll_dice()).export())
|
||||
Reference in New Issue
Block a user