Botpy-Docs
简洁高效的异步 Python QQ 频道机器人框架
起步就如此简单
pip install qq-botpy
import botpy
from botpy.types.message import Message
class MyClient(botpy.Client):
async def on_at_message_create(self, message: Message):
await self.api.post_message(
channel_id=message.channel_id,
content="content"
)
intents = botpy.Intents(public_guild_messages=True)
client = MyClient(intents=intents)
client.run(appid={appid}, token={token})