mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-11 08:47:23 +08:00
18 lines
450 B
Python
18 lines
450 B
Python
|
from nonebot.permission import SUPERUSER
|
||
|
from nonebot_plugin_alconna import Alconna, Arparma, on_alconna
|
||
|
|
||
|
from liteyuki.utils.config import config
|
||
|
from liteyuki.utils.ly_typing import T_Bot
|
||
|
|
||
|
cmd_liteyuki = on_alconna(
|
||
|
Alconna(
|
||
|
"liteyuki"
|
||
|
),
|
||
|
permission=SUPERUSER
|
||
|
)
|
||
|
|
||
|
|
||
|
@cmd_liteyuki.handle()
|
||
|
async def _(bot: T_Bot):
|
||
|
await cmd_liteyuki.finish(f"Hello, Liteyuki!\nBot {bot.self_id}\nLiteyukiID {config.get('liteyuki_id', 'No')}")
|