Attempt to make a choose-your-own-adventure game as a Telegram bot.
| Name | Version |
|---|---|
| Python | 3.11.0 |
| sqlite3 | 3.41.2 |
| python-telegram-bot | 20.2 |
pip install -r requirements.txtExport environment variables (see below)
TELEGRAM_BOT_ACCESS_TOKEN=...py .src/bot.pyptwsqlite3 adventure.db < sql/schema.sqlpy ./sql/load_data.pysqlite3 adventure.db < sql/print_nodes.sql
sqlite3 adventure.db < sql/print_edges.sqlNote: display layout is randomised, so the graph may look different each time.
py ./sql/display_graph.pyTo obtain an access token for telegram, see help page, but in essence, talk to the BotFather.
The access token is used via an environment variable, or a .env file, which is not tracked by git.
touch .envTELEGRAM_BOT_ACCESS_TOKEN=...