1
0
Fork 0
Ir para arquivo
Ceda EI 6116594eb4 [fix] Re-order dispatchers so that /s?q_\d* commands work 2021-04-24 12:43:22 +05:30
.gitignore Set up sqlite database. 2018-10-24 19:18:02 +05:30
LICENSE Add LICENSE 2018-10-16 18:02:56 +00:00
README.md Allows CORS 2019-05-31 10:41:28 +05:30
bot.py [fix] Re-order dispatchers so that /s?q_\d* commands work 2021-04-24 12:43:22 +05:30
button_groups.py Add tokens UI 2019-03-11 21:11:09 +05:30
errors.py Add "bad values" error 2019-03-16 14:46:47 +05:30
questable.py Convert qid to int 2019-05-21 13:28:59 +05:30
sample.config.py Add support for webhooks. 2018-11-04 20:16:21 +05:30
schema.sql Add ls to list both quests and side quests 2019-05-11 12:29:21 +05:30
server.py Allows CORS 2019-05-31 10:41:28 +05:30
template.questable.service Add template for systemd service. 2018-11-04 19:59:00 +05:30

README.md

Questable

A game-like To-Do List Telegram Bot.

Source code for Questable Bot and the relevant API

Self Hosting

  • Clone the repository.
    • git clone https://gitlab.com/questable/questable_bot.git
  • cd questable

Telegram Bot

  • Install the dependencies
    • pip3 install python-telegram-bot
  • Copy sample.config.py to config.py and edit it accordingly.
  • Run the bot
    • python3 bot.py

Questable API Server

  • Install the dependencies
    • pip3 install Flask flask_cors
  • Install gunicorn
    • pip3 install gunicorn
  • Run gunicorn3 -b 127.0.0.1:5000 server:app. Change port if you want to run gunicorn on a different port.
  • Set up a reverse proxy from your webserver to localhost:5000.