diff options
Diffstat (limited to 'ATRI/service/send.py')
-rw-r--r-- | ATRI/service/send.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ATRI/service/send.py b/ATRI/service/send.py new file mode 100644 index 0000000..9b9c3f9 --- /dev/null +++ b/ATRI/service/send.py @@ -0,0 +1,13 @@ +from nonebot.adapters.cqhttp import Bot + + +class Send: + @staticmethod + async def send_to_superuser(message: str) -> None: + from ATRI.config import RUNTIME_CONFIG + async def _send_to_superuser(bot: Bot) -> None: + for sup in RUNTIME_CONFIG['superusers']: + await bot.send_private_msg( + user_id=sup, + message=message + ) |