From f80e9f05b43a4883e58eaf82f2200d31ac87b23e Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Wed, 19 Apr 2023 17:08:33 +0800 Subject: rename to `HydroRoll` --- ChienDice/plugins/iamai_plugin_send/__init__.py | 28 ------------------------- 1 file changed, 28 deletions(-) delete mode 100644 ChienDice/plugins/iamai_plugin_send/__init__.py (limited to 'ChienDice/plugins/iamai_plugin_send/__init__.py') diff --git a/ChienDice/plugins/iamai_plugin_send/__init__.py b/ChienDice/plugins/iamai_plugin_send/__init__.py deleted file mode 100644 index 4e4a516..0000000 --- a/ChienDice/plugins/iamai_plugin_send/__init__.py +++ /dev/null @@ -1,28 +0,0 @@ -import re - -from plugins.iamai_plugin_base import CommandPluginBase - -from .config import Config - - -class Send(CommandPluginBase[None, Config]): - Config = Config - - def __post_init__(self): - self.re_pattern = re.compile(r"\s*(?P.*)", flags=re.I) - - async def handle(self) -> None: - try: - await self.event.adapter.send( - self.msg_match.group("message"), - "private", - self.config.send_user_id, - ) - except Exception as e: - if self.config.send_filed_msg is not None: - await self.event.reply( - self.format_str(self.config.send_filed_msg, repr(e)) - ) - else: - if self.config.send_success_msg is not None: - await self.event.reply(self.format_str(self.config.send_success_msg)) -- cgit v1.2.3-70-g09d2