diff options
Diffstat (limited to 'example/plugins/r.py')
| -rw-r--r-- | example/plugins/r.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/example/plugins/r.py b/example/plugins/r.py new file mode 100644 index 0000000..2f05af9 --- /dev/null +++ b/example/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") |
