du.py
Install
Just put in a terminal this simple command:
# For Linux
sudo pip3 install du.py
# For others systems (Windows, MacOS...)
pip install du.py
Basic usage
from dudb import DUapi
# Note : by default, he will look for discord.riverside.rocks website.
# If you want to change the instance, add the argument "url":
# du = DUapi(url = "https://discord.example.com")
du = DUapi(token="Your token")
# Get status of a user
print(du.getStatus("466262009256869889"))
# Report a user
du.report("466262009256869889", "He spam my server")
# Get basic stats from the current instance
print(du.getStats())
# Delete all reports from the account who the API token was generated
du.deleteAllReports()
# Get the user whitelist of the current instance
print(du.getWhitelist())
License
This repository is licensed as MIT License.