From 89bdfda00633fdca0f821eeb08670349ff8acf40 Mon Sep 17 00:00:00 2001 From: Sriram Sami Date: Wed, 9 Jun 2021 14:24:06 +0800 Subject: [PATCH] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 16d93e6..522f55f 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,5 @@ Bot live at http://t.me/sgbloodstocksbot or @sgbloodstocksbot. - Clone the repo - Install libraries with `pip install -r requirements.txt` - Get a Firebase `.json` private key file and the URL for your Firebase database. Save it as `firebase.json`. +- Before running the bot, add at least `{'bot_data': {'users_data': {'1111': {'blood_subscription': 'all'}}}}` to the Firebase database through the web UI. This minimal seeding is necessary so that the persistence layer doesn't complain. - Then, run the bot with `FIREBASE_URL="YOUR URL HERE" FIREBASE_CREDENTIALS=$(< firebase.json) python3 bot_local.py "TELEGRAM BOT API KEY"`