diff options
| author | 2023-04-19 17:08:33 +0800 | |
|---|---|---|
| committer | 2023-04-19 17:08:33 +0800 | |
| commit | f80e9f05b43a4883e58eaf82f2200d31ac87b23e (patch) | |
| tree | bb0fdd35c219bf67e8ece4010e23e39884262200 /ChienDice/plugins/iamai_plugin_bot_info/__init__.py | |
| parent | bfac2edccf0f83caab5321587de3d7876fd52871 (diff) | |
| download | HydroRoll-f80e9f05b43a4883e58eaf82f2200d31ac87b23e.tar.gz HydroRoll-f80e9f05b43a4883e58eaf82f2200d31ac87b23e.zip | |
rename to `HydroRoll`
Diffstat (limited to 'ChienDice/plugins/iamai_plugin_bot_info/__init__.py')
| -rw-r--r-- | ChienDice/plugins/iamai_plugin_bot_info/__init__.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/ChienDice/plugins/iamai_plugin_bot_info/__init__.py b/ChienDice/plugins/iamai_plugin_bot_info/__init__.py deleted file mode 100644 index 3cc869e..0000000 --- a/ChienDice/plugins/iamai_plugin_bot_info/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -import re -import sys -import platform -from importlib.metadata import version -from plugins.iamai_plugin_base import CommandPluginBase - -from .config import Config - - -class BotInfo(CommandPluginBase[None, Config]): - Config = Config - - def __post_init__(self): - self.re_pattern = re.compile(r"(?P<bot_info_str>.*)", flags=re.I) - - async def handle(self) -> None: - await self.event.reply( - self.format_str(self.config.message_str, - f"{self.bot.config.Chien['self']['header']} HydroRoll!{self.bot.config.Chien['version']}({self.bot.config.Chien['svn']}) by {self.bot.config.Chien['author']} on Python {'.'.join(map(str, platform.python_version_tuple()[:3]))} with {' & '.join([adapter + '('+version('iamai-adapter-'+adapter)+')' for adapter in dict(self.bot.config.adapter)])} for iamai({version('iamai')})\n{self.bot.config.Chien['self']['info']}") - ) |
