aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/plugins/e.py
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-08-13 12:23:35 +0800
committer简律纯 <i@jyunko.cn>2023-08-13 12:23:35 +0800
commit5f1c3792cae7ab78e6b85ed69f61534854b633a8 (patch)
tree335f1c73583762e83679aa588a00cc55fdd9ad79 /tests/plugins/e.py
parentc3508543f1aa6b29a5045bd846408c6141e77eca (diff)
downloadHydroRoll-5f1c3792cae7ab78e6b85ed69f61534854b633a8.tar.gz
HydroRoll-5f1c3792cae7ab78e6b85ed69f61534854b633a8.zip
feat: 优化架构
Diffstat (limited to 'tests/plugins/e.py')
-rw-r--r--tests/plugins/e.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/plugins/e.py b/tests/plugins/e.py
deleted file mode 100644
index be28e30..0000000
--- a/tests/plugins/e.py
+++ /dev/null
@@ -1,16 +0,0 @@
-from iamai import Plugin
-
-class Exec(Plugin):
- async def handle(self) -> None:
- try:
- await self.event.reply(eval(self.event.raw_message[5:]))
- except Exception as e:
- await self.event.reply(f"ERROR:\n\t{e}")
-
- async def rule(self) -> bool:
- if self.event.adapter.name != "cqhttp":
- return False
- try:
- return self.event.message.get_plain_text().startswith(".show")
- except:
- return False \ No newline at end of file