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-04-30 11:30:59 +08:00

23 lines
686 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):
message = await m(msg, msg.parsed_msg['<mod_name>'])
await msg.finish(message)
@mcmod.handle('details <content> {{mcmod.help.details}}')
async def main(msg: Bot.MessageSession):
message = await m(msg, msg.parsed_msg['<content>'], detail=True)
await msg.finish(message)