Skip to content

Development Environment Setup

Martin Sweeny edited this page May 3, 2021 · 1 revision

Requirements

Prerequisites

  • A server for which you have admin rights
  • An application and bot within it, and that bots token
  • A MySQL server and user

Software dependencies

  • Python 3.6+ and pypi
  • MySQL or MariaDB
  • git

Quickstart

  1. Clone the repo and enter project root

    git clone [email protected]:you-will-love-each-other/health-bot.git
    cd health-bot
  2. Install dependencies with pypi

    python3 -m pip install -r requirements.txt
  3. 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.

  4. 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.

Clone this wiki locally