-
-
Notifications
You must be signed in to change notification settings - Fork 19
Running Harambot
To run harambot locally you will need to have the following environment variables set:
export DISCORD_TOKEN='[YOUR DISCORD TOKEN]'
export YAHOO_KEY='[YOUR YAHOO API CLIENT ID]'
export YAHOO_SECRET='[YOUR YAHOO API CLIENT SECRET]'
export DATABASE_URL='[YOUR DATABASE URL]'
-
Install the harambot package using pip
pip install harambot
-
Run the bot
harambot
-
Pull the image from docker hub
docker pull dmcp89/harambot
-
Run the container
docker run --name harambot \ -e DISCORD_TOKEN=$DISCORD_TOKEN \ -e YAHOO_KEY=$YAHOO_KEY \ -e YAHOO_SECRET=$YAHOO_SECRET \ -e DATABASE_URL=$DATABASE_URL \ --rm dmcp89/harambot
The harambot repository contains a docker-compose file that can be used to run the bot locally. It will create a postgres database and run the bot in a container.
-
Clone this repository
git clone [email protected]:DMcP89/harambot.git cd harambot
-
Run docker-compose up
docker-compose up
-
Clone this repository
git clone [email protected]:DMcP89/harambot.git cd harambot
-
Run the bot.
make run
make build-image make run-docker
Harambot supports the following cloud providers:
Click the button and fill out the form with your discord token and yahoo api client key and and secret.
Click the button and fill out the form with your discord token and yahoo api client key and and secret.
Once the deployment is complete enable the dyno
Once you have harambot running you can follow the configuration guide to add the bot to your discord server and configure your league.