Skip to content

Discord bot for reporting Diablo 2 Resurrected DClone status changes

License

Notifications You must be signed in to change notification settings

Synse/dclone-discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dclone-discord

A Discord bot for reporting DClone Tracker progress changes and upcoming planned walks 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.

You can also get the current progress for tracked regions and planned walks by typing .dclone or !dclone in chat.

Usage

Requires Python 3.6+, tested on Ubuntu 20.04.

Installation

git clone https://github.com/Synse/dclone-discord.git
cd dclone-discord
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. Request one here.
  • DCLONE_D2RW_CONTACT (Highly Recommended): The email address for your d2runewizard.com account, required if you want planned walk information.
  • 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 dclone_discord.py.

Disclaimer

Data courtesy of diablo2.io and d2runewizard.com.

About

Discord bot for reporting Diablo 2 Resurrected DClone status changes

Topics

Resources

License

Stars

Watchers

Forks

Languages