Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 2.29 KB

README.md

File metadata and controls

44 lines (29 loc) · 2.29 KB

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 3 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 (not recommended).

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.