Simple Python bot that can generate funny messages in Telegram chats based on previous messages using markov chain.
/generate
· generate new message bypassing random chance and generation rate limit./statistics
(aliases:/info
,/stats
) · display chat's statistics/clear
(chat admin only) · clear history of messages
- Install Python 3.11 or higher.
- Install dependencies from
requirements.txt
(usingpip install -r requirements.txt
) - Launch
src/main.py
(usingpython src/main.py
)
- Make sure that docker is installed
- Run
docker build -t tag .
(replacetag
with your image name) - Launch built docker image
- aiogram · 3.0.0b6 · telegram api wrapper
- markovify · markov chain library
- redis · library to store all previous messages in chat
- loguru · simple logger
Pull Requests are always welcome!
You can support my further developments or support this project by buying me a coffee or pizza.