questable_bot/README.md

31 lines
788 B
Markdown
Raw Permalink Normal View History

2018-10-16 20:00:12 +02:00
# Questable
2019-05-21 12:51:40 +02:00
A game-like To-Do List Telegram Bot.
Source code for [Questable Bot](https://t.me/questable_bot) and the relevant
[API](https://api.questable.webionite.com/)
# 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`
2019-05-21 12:57:47 +02:00
+ Copy `sample.config.py` to `config.py` and edit it accordingly.
2019-05-21 12:51:40 +02:00
+ Run the bot
+ `python3 bot.py`
## Questable API Server
+ Install the dependencies
2019-05-31 07:11:28 +02:00
+ `pip3 install Flask flask_cors`
2019-05-21 12:51:40 +02:00
+ 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`.