This is a discord bot to notify when a World Boss is going to spawn. It scrapes the twitter account game8_d4boss for new boss events, and posts when it sees one. The twitter check runs every 5 minutes, but this can be adjusted in line 51 of main.py
, however I wouldn't go too much lower, as twitter does not seem to like this method.
NOTE: First run might take a little while because we need to install Firefox inside the container
- Install Docker
- Clone this repo.
git clone https://github.com/elightcap/d4bot
- Move the sample.env and add your discord webhook to it.
cp sample.env .env && nano.env
- Start the container.
docker compose up -d
or for older docker installsdocker-compose up -d
- Clone this repo.
git clone https://github.com/elightcap/d4bot
- Install dependencies.
pip install -r requirements.txt
- Install firefox. This is OS/distro dependant.
- Move the sample.env and add your discord webhook to it.
cp sample.env .env && nano.env
- Run bot.
python3 main.py
Recommend using something like tmux when building manually.
- Navigate to repo directory.
cd /path/to/dir
- Pull new image.
docker compose pull
- Re-up the container.
docker compose up -d