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