aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/plugins/show.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugins/show.py')
-rw-r--r--tests/plugins/show.py39
1 files changed, 0 insertions, 39 deletions
diff --git a/tests/plugins/show.py b/tests/plugins/show.py
deleted file mode 100644
index b99c18c..0000000
--- a/tests/plugins/show.py
+++ /dev/null
@@ -1,39 +0,0 @@
-from iamai import Plugin
-from numpy.random import Generator
-from randomgen import AESCounter
-rg = Generator(AESCounter(12345, mode="sequence"))
-
-
-class Exec(Plugin):
-
- priority = 1
-
- async def handle(self) -> None:
- try:
- content = [
- {
- "type": "node",
- "data": {
- "name": f"{self.event.sender.nickname}",
- "uin": f"{self.event.sender.user_id}",
- "content": [
- {
- "type": "text",
- "data": {
- "text": f"{eval(self.event.message.get_plain_text()[6:])}"
- }
- }
- ]
- }
- }
- ]
- 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}")
-
- async def rule(self) -> bool:
- return (
- self.event.type == "message"
- and
- self.event.message.get_plain_text().startswith(".show")
- ) \ No newline at end of file