Git Product home page Git Product logo

spoilerobot's Introduction

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
    $ psql
    postgres=# GRANT ALL PRIVILEGES ON DATABASE spoilerobot TO spoilerobot;
    postgres=# \c spoilerobot postgres
    You are now connected to database "spoilerobot" as user "postgres".
    postgres=# GRANT ALL ON SCHEMA public TO spoilerobot;
    postgres=# \password spoilerobot
    [enter a password for the bot's database user]
    
  • Store this password in the db_pwd environment variable (or modify config.py)

  • Put your bot token in a file called token.txt

  • Edit the environmental variables inside shell.nix

  • Enter development shell with nix-shell

  • Run the bot with python spoilerobot.py

spoilerobot's People

Contributors

udf avatar cosmoconsole avatar

Stargazers

Mike avatar 凌莞~(=^▽^=) avatar Ezequiel Alejandro Becerra avatar  avatar  avatar  avatar Rafal W. avatar Satyam Singh avatar io avatar Jose Perez-Parras Toledano avatar Avi0n avatar  avatar Chris avatar Gabriele avatar  avatar Austin Jackson avatar RememberTheAir avatar novenary avatar bb010g avatar

Watchers

bb010g avatar James Cloos avatar x0x8x avatar  avatar  avatar  avatar  avatar

Forkers

rebel6969 clansty

spoilerobot's Issues

Creating spoilers without /start

streetwal ⁣, [24.12.18 14:33]
btw @KateWasTaken spoilero feature request

samsam, [24.12.18 14:33]
github has issues

streetwal ⁣, [24.12.18 14:33]
it'd be cool if you could create a media spoiler without doing /start

streetwal ⁣, [24.12.18 14:34]
if you just send it a picture if will just tell you to do that

streetwal ⁣, [24.12.18 14:34]
which is gay

samsam, [24.12.18 14:35]
make an issue on the repo so i dont forget about this when i finally gather enough motivation to do it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.