diff options
author | Kyomotoi <[email protected]> | 2020-12-06 16:45:38 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2020-12-06 16:45:38 +0800 |
commit | dc4fd407386522bca6bae22933ac1c6f17d1f16d (patch) | |
tree | 916c9c95be9e1719ab67296b40eb297b703e7f2e /ATRI/plugins/plugin_test | |
parent | 50c41b629532eae599320517387b4b56f6d16ff6 (diff) | |
download | ATRI-dc4fd407386522bca6bae22933ac1c6f17d1f16d.tar.gz ATRI-dc4fd407386522bca6bae22933ac1c6f17d1f16d.tar.bz2 ATRI-dc4fd407386522bca6bae22933ac1c6f17d1f16d.zip |
[Update]
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) + + +async def _(bot: Bot, event: Event, state: dict) -> None: + msg = ("test0\n" "test1\n" "test2") + await bot.send(event, msg) |