sendo erika on NoneBot
I am a QQ group chatting bot based on Coolq, Coolq http api and Nonebot which takes advantages on Python's asyncio mechanisms thus supporting a high volume of message i/o. I do provide useful plugins extended from Nonebot framework to ensure the bot operates at an acceptable and useable level. Like what was described on Nonebot, I only run on over Python 3.7+ and CoolQ HTTP plugin v4.7+.
I do
- detect keywords from group chats and reply from customized settings
- be controlled from owner directly to send messages
- repeat
- sign in
- notify you to wake up from bed at 6 am
- search weather data and etc
You can freely only absorb part of this repo to merge it into your own coolq applications.
First follow https://cqp.cc/ and instructions to get CoolQ ready thenStart the CoolQ application and makes sure it is working properly.***If you use docker, go here: https://github.com/CoolQ/docker-wine-coolq to deploy a docker application by
mkdir coolq && cd coolq
docker run --rm -p 9000:9000 -v `pwd`:/home/user/coolq coolq/wine-coolq
Follow https://cqhttp.cc/ to get http api plugin enabled on CoolQ.- then refer to https://nonebot.cqp.moe/ to get familiar with Nonebot
- have required dependency:
pip3 install nonebot
...
- Plugin documentation is available, see it and finish initialization.
Since Coolq is dead, please refer to this issue for alternative ways of deploying it.
NoneBot has updated to v3.5.0, abandoning the use of Context_T
and discarding Python 3.6. As a result, this bot, after bumping versions, only runs above Python 3.7.