A API wrapper for Dangerous Users Data Base
Project description
du.py
🦴 A Python API for Dangerous Users DB!
Install
Just put in a terminal this simple command:
# For Linux
sudo pip3 install discord-du
# For others systems (Windows, MacOS...)
pip install discord-du
Basic usage
from dudb import DUapi
# Note: by default, it 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 spammed my server")
# Get basic stats from the current instance
print(du.getStats())
# Delete all reports from the account where the API token was generated
du.deleteAllReports()
# Get the user whitelist of the current instance
print(du.getWhitelist())
License
This repository is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
discord-du-1.0.0.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file discord-du-1.0.0.tar.gz
.
File metadata
- Download URL: discord-du-1.0.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 092f208f4e715a6ae703063fab713303620d3d4ab8edb102acc85441090ea9c9 |
|
MD5 | 87386f656490cf8ab534ec3e120112cf |
|
BLAKE2b-256 | fff0be3cb92733075ef4f09161d67b9315ae7cfa893380e39a0ab01319d3a91d |
File details
Details for the file discord_du-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: discord_du-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36c44a039499b1dca84f3631f2a12792bc41e02798d27a6f072efee7254a2f69 |
|
MD5 | 4e4b9ec535268ce40cb29be57e29b9ca |
|
BLAKE2b-256 | a024a1bec4da674bd344b6ca71a11f76319547e879eb1037439b7799ce9346a5 |