Skip to content

rebel6969/spoilerobot

 
 

Repository files navigation

spoilerobot

The source code for the Spoiler-o-bot, a Telegram spoiler creation bot You can try it out by typing @spoilerobot (inline) in Telegram

Usage

  • Setup PostgreSQL on your system

  • Create a user and database for the bot by becoming the postgres user and executing

    $ createuser spoilerobot
    $ createdb spoilerobot -U spoilerobot
    $ psql -U spoilerobot
    spoilerobot=> \password
    [enter a password for the bot's database user]
    
  • Store this password in the tg_bot_spoilero_db_pwd environmental variable (or modify config.py)

  • Install dependencies with pip install -r requirements.txt

  • Run the script and follow the instructions on creating your unique pepper (note that your pepper should remain the same for each instance of the bot and database)

  • Put your user_id in the tg_bot_spoilero_admin variable

  • You can now run it with tg_bot_spoilero=TOKEN python spoilerobot.py

About

The source code for the Spoiler-o-bot, a Telegram spoiler creation bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%