From 5a2033860a328c4116f0ede2874915315e7487b0 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 3 Nov 2023 03:28:35 +0800 Subject: Co-authored-by: HadalFauna --- tests/plugins/r.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/plugins/r.py (limited to 'tests/plugins/r.py') diff --git a/tests/plugins/r.py b/tests/plugins/r.py new file mode 100644 index 0000000..2f05af9 --- /dev/null +++ b/tests/plugins/r.py @@ -0,0 +1,10 @@ +from iamai import Plugin + + +class Roll(Plugin): + async def handle(self) -> None: + await self.event.reply("""Attack: 25 +Damage: 9""") + + async def rule(self) -> bool: + return self.event.type == "message" and self.event.message.startswith("/r") -- cgit v1.2.3-70-g09d2