- Python version:
v3.7.x
Assumption: Discord bot has OAuth2 already setup and Git is installed.
- Clone the GitHub Repo
git clone https://github.com/charlespetchsy/discord-div2stats.git ; cd discord-div2stats/
- Install dependencies
pip3 install -r requirements.txt
- Copy and paste your OAuth2 token in the last line of
main.py
... bot.run('<your_OAuth2_token_here>')
- Have fun and feel free to modify the code to your desire!
Retrieve general player stats:
Note: Player name is character case agnostic.
!shd <player_name>
Sample Output for !shd softbunn
:
Username: SOFTBUNN
====================
Gear Score: 507 [ Top 2% ]
====================
Lifetime Stats
---------------------------------------------------------
PvP Kills: 7 [ Top 38% ]
NPC Kills: 5,153 [ Top 46% ]
Skill Kills: 351 [ Top 64% ]
Headshots: 20,207 [ Top 23% ]
Items Looted: 2,356 [ Top 28% ]
E-Credit Balance: 473,516 [ Top 5% ]
Commendations: 51 [ Top 27% ]
Sharpshooter (Spec) Kills: 3,307 [ Top 14% ]
Survivalist (Spec) Kills: 0 [ None ]
Demolitionist (Spec) Kills: 0 [ None ]
PvE Stats
---------------------------------------------------------
PvE XP: 21,979,165 [ Top 30% ]
Time Played: 3d 17h 14m [ Top 37% ]
Named Kills: 75 [ Top 46% ]
Hyena Kills: 1,430 [ Top 49% ]
OutCasts Kills: 1,177 [ Top 44% ]
Truesons Kills: 1,573 [ Top 43% ]
BlackTusk Kills: 871 [ Top 48% ]
PvP Stats
---------------------------------------------------------
PvP XP: 84,227 [ Top 40% ]
Time Played: 1h 53m 48s [ Top 47% ]
Rogue Time: 03m 08s [ Top 52% ]
Rogues Killed: 6 [ Top 15% ]
Ping Test with !shd ping
:
pong (0 ms)
Help Command with !shd help
:
Get player stats: !shd <player_name>
Bot ping test: !shd ping
Usage of any "The Division" name, logos and/or images are registered trademarks of Ubisoft.