aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/example/plugins/show.py
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-11-11 02:52:32 +0800
committer简律纯 <i@jyunko.cn>2023-11-11 02:52:32 +0800
commitd26f76d8a219b35105ab8c5c116fd6fc2e21f736 (patch)
treed718386893c29150ec53447b4f5ad27acdb0d67e /example/plugins/show.py
parent4c2a6c5a911b684d58146517243cfd2d981d3686 (diff)
downloadHydroRoll-d26f76d8a219b35105ab8c5c116fd6fc2e21f736.tar.gz
HydroRoll-d26f76d8a219b35105ab8c5c116fd6fc2e21f736.zip
chore: 拆分 `handle` 方法,实现输入流
Diffstat (limited to 'example/plugins/show.py')
-rw-r--r--example/plugins/show.py6
1 files changed, 3 insertions, 3 deletions
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 (