Skip to content
A telegram bot based on the "Silence, Liberal" meme
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
font
output
template
.gitattributes
.gitignore
LICENSE
README.md
bot.py
config.sample.py
requirements.txt

README.md

@silencelibbot

license framework author author author

GitHub stars GitHub forks GitHub watchers

Description

silencelibbot is a telegram bot based on the "Silence, Liberal" meme

Silence, Liberal

Roadmap

You can find the official one here: author

Contribute!

If you want to help with the project, go on!

Fork the repo, modify the code and submit a PR.

Help, suggestions and improvements are always welcome!

Installation

To install this masterpiece you need: Python 3, Botogram and Pillow

Get the latest release of Python 3 here and install the most recent release for your OS.

Then, type this in your home folder:

git clone https://github.com/casungo/silencelibbot.git

cd silencelibbot

python3 -m pip install -r requirements.txt

Congratulations, you are ready to start the bot.

Get the token

We are not ready yet, we have to get a new and shiny HTTP API token from the father of all bots, @botfather.

Type /start to start the bot, then type /newbot to create a new bot and follow all the instructions, please let the users know that your bot is a fork of this repository by putting the repo link in the description, thanks. After all of that you will get a piece of text similar to this:

123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11

Copy the piece of text that you recived from botfather and paste it into the config.py file between the apostrophes, this will tell to the telegram servers wich bot needs to run the code.

Start the bot

You are ready finally ready to start your bot, if you have to do any modifications to the code, do those now and come back here when you have finished.

In order to fire up the bot you need to type this:

python3 bot.py

The bot is now running, to do a test, type something in the telegram chat with your bot and see if your bot outputs an image.

Protip: Keep your bot running even when you exit your session

To prevent your bot from stopping when you end your session, use the nohup command in the silencelibbot folder:

nohup python3 bot.py &

To stop the bot that you have started with this command, simply kill the python3 bot.py process

Need help?

If something doesn't work as expected, open an issue here on GitHub or contact me at @casungo.

Why did you do this bot?

I was in a Telegram chat with some friends and someone started talking BS, so:

I tiped "silence, liberal meme" into Google Images, took the template of the meme, fired up GIMP, wrote the name of my friend on top of the image, saved, and finally dragged the exported image into the telegram chat.

Then I said to myself "Wow, that's a very long process to do every time I want to use this meme, why not create a telegram bot JUST for this?"

And voilà, the bot was created (It took some time but it's worth it)

Authors and acknowledgment

@casungo: Mantainer of the official bot & repo

@MarcoBuster: Telegram implementation

@boringcactus: She gave me the idea with her bot @crabravebot

License

This code uses the GPL v3 License

You can’t perform that action at this time.