Archived
1
0
Fork 0
This repository has been archived on 2024-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
akari-bot/modules/mcmod/__init__.py
2023-06-04 21:03:24 +08:00

21 lines
631 B
Python

from core.builtins import Bot
from core.component import module
from .mcmod import mcmod as m
mcmod = module(
bind_prefix='mcmod',
desc='{mcmod.help.desc}',
developers=['Dianliang233', 'HornCopper', 'DrLee_lihr'],
alias={'moddetails': 'mcmod details'},
support_languages=['zh_cn']
)
@mcmod.handle('<mod_name> {{mcmod.help.mod_name}}')
async def main(msg: Bot.MessageSession, mod_name: str):
await msg.finish(await m(msg, mod_name))
@mcmod.handle('details <content> {{mcmod.help.details}}')
async def main(msg: Bot.MessageSession, content: str):
await msg.finish(await m(msg, content, detail=True))