forked from hypogirl/health-bot
-
Notifications
You must be signed in to change notification settings - Fork 1
Development Environment Setup
Martin Sweeny edited this page May 3, 2021
·
1 revision
- A server for which you have admin rights
- An application and bot within it, and that bots token
- A MySQL server and user
- Python 3.6+ and pypi
- MySQL or MariaDB
- git
-
Clone the repo and enter project root
git clone [email protected]:you-will-love-each-other/health-bot.git cd health-bot
-
Install dependencies with pypi
python3 -m pip install -r requirements.txt
-
Set up environment variables:
cp .env.example .env
Populate the new
.env
file with your database credentials and the bot token for the bot you intend to use to test. -
Run the bot with
python
:python bot.py
Note: Some operating systems might use a different
python
bin or default to Python 2.7, so ensure you're using the correct one or adjust the command accordingly.