diff options
Diffstat (limited to 'ATRI/plugins/plugin_test')
| -rw-r--r-- | ATRI/plugins/plugin_test/__init__.py | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/ATRI/plugins/plugin_test/__init__.py b/ATRI/plugins/plugin_test/__init__.py index 72c7372..573cf8b 100644 --- a/ATRI/plugins/plugin_test/__init__.py +++ b/ATRI/plugins/plugin_test/__init__.py @@ -11,6 +11,7 @@  '''  __author__ = 'kyomotoi' +import inspect  import os  from pathlib import Path  from random import sample @@ -40,3 +41,12 @@ async def _(bot: Bot, event: Event, state: dict) -> None:      group_list = await bot.get_group_list()      group = sample(group_list, 1)      print(group[0]['group_id'], type(group[0]['group_id'])) + + +testSendFormat = on_command('测试发送', permission=SUPERUSER) + + +@testSendFormat.handle() +async def _(bot: Bot, event: Event, state: dict) -> None: +    msg = ("test0\n" "test1\n" "test2") +    await bot.send(event, msg)  | 
