This project provides a web-based control panel for managing a Jeopardy-themed Discord bot. The control panel, built with React, allows authorized users to toggle the bot's status and schedule new Jeopardy games by uploading a JSON file. The server side, developed using Flask, handles API requests, Discord bot interactions, and game management.
- Python 3.8 or newer
- Dependencies as listed in
requirements.txt
-
Clone the repository:
git clone https://github.com/asusoda/soda-internal-api.git
-
Create a new virtual environment eihter conda or venv If using conda:
conda create --name soda-internal-api python=3.8 conda activate soda-internal-api
if usning venv:
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
-
Edit the secret values Copy the .env.template to .env
cp .env.template .env
Edit the .env file to provide the necessary configuration values, such as API keys, Discord bot token, and other credentials.
-
Run the program
python3 main.py
-
Configure production settings in the
.env
file. -
Use a production-ready WSGI server such as
gunicorn
oruWSGI
to serve the Flask app.Example with
gunicorn
:gunicorn --bind 0.0.0.0:8000 wsgi:app
This project is licensed under the MIT License.
For any questions or feedback, feel free to reach out:
- Tanay Upreti - GitHub