all repos — python-meme-bot @ 14b60490cbc0253e75af3eca694ddbb97ca2f5c0

Telegram Bot that uses PIL to compute light image processing.

better documentation
Marco Andronaco andronacomarco@gmail.com
Tue, 28 Mar 2023 10:23:31 +0200
commit

14b60490cbc0253e75af3eca694ddbb97ca2f5c0

parent

b12530d195c1ac7ff3914ad87b62b488f6bad5b3

2 files changed, 23 insertions(+), 8 deletions(-)

jump to
A .env.example

@@ -0,0 +1,1 @@

+token=1234567890:abcdefghijklmnopqrstuvwxyzabcdefgh
M README.mdREADME.md

@@ -1,16 +1,30 @@

-# python-meme -Python program that creates a meme from an image and caption text +# MemeBot +Telegram Bot that uses the Pillow library to compute light image processing. ## How to use -Edit `main.py` near the bottom and change these lines to what you need for your image +Copy the `.env.example` file into `.env` and insert your Telegram Bot Token. +Create a new virtual environment and install required packages: ``` -caption = "Now I Have a Caption" -image = './my_image.jpg' -outputImage = './my_captioned_image.jpg' +python -m venv venv +source venv/bin/activate +pip install -r requirements.txt ``` -Using the command line run +Then, start the bot by running: +```python main.py``` -`python main.py` +## Commands + +* **/lang**: change the bot's display language; +* **/pic**: get a random anime picture; +* **/ttbt**: generate a meme in the top text, bottom text format; +* **/tt**: only use top text; +* **/bt**: only use bottom text; +* **/splash**: generate an authored quote; +* **/wot**: generate a wall of text; +* **/text**: display a short text over an image; +* **/spin**: spin a slot machine; +* **/bet**: change your bet; +* **/cash**: display current balance.