This repo contains the API and Bot for Netor. There is another repo for the dashboard.
- Install dependencies:
pip install -r requirements.txt
- Create a
.env
:
TOKEN="<discord bot token>"
APPLICATION_ID="<discord bot id>"
DATABASE_URL="database url from docker (created with dashboard setup), if in doubt use: 'postgresql://postgres:postgres@localhost:5432/postgres'"
WEB_URL="<dashbord url, if in doubt use 'http://localhost:3000'>"
SPECIAL_AUTH="<can be anything, must be the same for the bot and dashboard>"
PORT="<port for the api>"
- Start the bot:
py server.py