A silly Telegram bot for groups written in Python. This is an early WIP with only the most basic functions published.
- Python 3.6
- Install required modules:
sudo pip3 install -r requirements.txt
- Install ImageMagick:
sudo apt install imagemagick
- Add your bot token to
config.yml
- Adjust the config to your needs
- Add content to the
/data/
folder - Make sure the current user has write access to the
tmp_path
locations withchown
and/orchmod
- Start the bot:
python3 hsbot.py
count
: parse all messages and listen for certain keywords, message on "milestones"/describe
: Use Microsoft's CaptionBot AI to describe imagesdynamic_reply
: Reply to certain keywords with randomly picked audio, video and imagesrand_image
: Reply with random images, using different subdirectories corresponding to the context/rate
: Get a random rating/scale
: Liquid-rescale image, optional strength parameter of 0 to 100/say
: Use Google TTS to read out replies or contextvoice_reply
: Listen for certain keywords and reply with a voice message
-
scale
- Context aware scaling of images - WIP, doesn't work with stickers yet -
glitch
- Glich jpg and png images -
count
- Listen for & count specific keywords, print out messages on certain milestones (currently using repdigits as milestones)