mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-11 06:26:42 +00:00
Restructure
This commit is contained in:
15
none/plugins/base.py
Normal file
15
none/plugins/base.py
Normal file
@ -0,0 +1,15 @@
|
||||
from aiocqhttp.message import unescape
|
||||
|
||||
import none
|
||||
from none import permissions as perm
|
||||
from none.command import Session
|
||||
|
||||
|
||||
@none.on_command('echo')
|
||||
async def echo(session: Session):
|
||||
await session.send(session.current_arg)
|
||||
|
||||
|
||||
@none.on_command('say', permission=perm.SUPERUSER)
|
||||
async def _(session: Session):
|
||||
await session.send(unescape(session.current_arg))
|
Reference in New Issue
Block a user