From dc4fd407386522bca6bae22933ac1c6f17d1f16d Mon Sep 17 00:00:00 2001 From: Kyomotoi <1172294279@qq.com> Date: Sun, 6 Dec 2020 16:45:38 +0800 Subject: [Update] --- ATRI/plugins/plugin_test/__init__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ATRI/plugins/plugin_test') 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) -- cgit v1.2.3