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
2022-01-20 20:13:03 +08:00

16 lines
499 B
Python

from core.component import on_command
from core.elements import MessageSession
from .mcmod import mcmod as m
mcmod = on_command(
bind_prefix='mcmod',
desc='从 MCMOD 获取 Minecraft Mod 信息',
developers=['Dianliang233', 'HornCopper'],
)
@mcmod.handle('<mod_name> {通过模组名获取模组简介及链接,可使用无歧义简写和准确中文。}')
async def main(msg: MessageSession):
message = await m(msg.parsed_msg['<mod_name>'])
await msg.sendMessage(message)