Skip to content

Discord bot for reporting Diablo 2 Resurrected DClone status changes

License

Notifications You must be signed in to change notification settings

shallox/d2r-discord-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

d2r-discord-bot

A Discord bot for reporting DClone Tracker progress changes, upcoming planned walks and Terror Zone info for Diablo 2: Resurrected. By default it will report any progress changes at or above level 2 for All Regions, Ladder and Non-Ladder, Softcore and planned walks an hour before they start. Also, every hour it will report on the latest Terror Zone.

You can also get a list of avalable commands by typing !help in the chatt.

Usage

Requires Python 3.6+, tested on Ubuntu 20.04 and 22.04.

Installation

git clone https://github.com/shallox/d2r-discord-bot
cd d2r-discord-bot
pip3 install -r requirements.txt

Configuration

Configuration is done via environment variables, or you can edit the variables near the top of the script.

Required

  • DCLONE_DISCORD_TOKEN: Token for connecting to Discord, create a bot account with the instructions here. Only the Send Messages permission is required.
  • DCLONE_DISCORD_CHANNEL_ID: The channel id to send messages to.

Optional

  • DCLONE_D2RW_TOKEN (Highly Recommended): Token for querying d2runewizard.com, required if you want planned walk information as well as terror zone information. Request one here.
  • DCLONE_REGION: 1 for Americas, 2 for Europe, 3 for Asia, blank (Default) for All Regions.
  • DCLONE_LADDER: 1 for Ladder, 2 for Non-Ladder, blank (Default) for both.
  • DCLONE_HC: 1 for Harcore, 2 for Softcore (Default), blank for both.
  • DCLONE_THRESHOLD: Progress level to report at (and above). Default is 3.
  • DCLONE_REPORTS: Only report changes after this many reports agree on a change. Default is 3.

Running

Start the bot with python3 d2r-discord-bot.py.

Disclaimer

Data courtesy of diablo2.io and d2runewizard.com.

Base code courtesy of Synse.

About

Discord bot for reporting Diablo 2 Resurrected DClone status changes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%