Archived
1
0
Fork 0
This repository has been archived on 2024-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
akari-bot/bots/lagrange/utils.py
2023-11-06 20:35:28 +08:00

15 lines
381 B
Python

from bots.lagrange.client import bot
from aiocqhttp.exceptions import ActionFailed
from config import Config
def get_plain_msg(array_msg: list) -> str:
text = []
for msg in array_msg:
if msg['type'] == 'text':
text.append(msg['data']['text'])
return '\n'.join(text)
async def get_group_list():
return await bot.call_action('get_group_list')