You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Ceda EI 6116594eb4 [fix] Re-order dispatchers so that /s?q_\d* commands work 2 years ago
.gitignore Set up sqlite database. 4 years ago
LICENSE Add LICENSE 4 years ago
README.md Allows CORS 4 years ago
bot.py [fix] Re-order dispatchers so that /s?q_\d* commands work 2 years ago
button_groups.py Add tokens UI 4 years ago
errors.py Add "bad values" error 4 years ago
questable.py Convert qid to int 4 years ago
sample.config.py Add support for webhooks. 4 years ago
schema.sql Add ls to list both quests and side quests 4 years ago
server.py Allows CORS 4 years ago
template.questable.service Add template for systemd service. 4 years ago

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.