summaryrefslogtreecommitdiff
path: root/ATRI/service/send.py
blob: 9b9c3f9bce1d6ff2c18641d8f932fe3ba130e86a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
                )