From d26f76d8a219b35105ab8c5c116fd6fc2e21f736 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sat, 11 Nov 2023 02:52:32 +0800 Subject: chore: 拆分 `handle` 方法,实现输入流 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/plugins/show.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'example/plugins/show.py') diff --git a/example/plugins/show.py b/example/plugins/show.py index b99c18c..289e141 100644 --- a/example/plugins/show.py +++ b/example/plugins/show.py @@ -1,7 +1,6 @@ from iamai import Plugin from numpy.random import Generator -from randomgen import AESCounter -rg = Generator(AESCounter(12345, mode="sequence")) + class Exec(Plugin): @@ -29,7 +28,8 @@ class Exec(Plugin): ] res = await self.event.adapter.send_group_forward_msg(group_id=int(self.event.group_id), messages=content) except Exception as e: - await self.event.reply(f"ERROR!{e!r}") + # await self.event.reply(f"ERROR!{e!r}") + await self.event.reply(f"{eval(self.event.message.get_plain_text()[6:])}") async def rule(self) -> bool: return ( -- cgit v1.2.3-70-g09d2