A Python wrapper for the Discord user API (Custom DarkSelf Fork)
Project description
A modern, easy-to-use, feature-rich, and async-ready API wrapper for Discord’s user API written in Python.
About the Project
discord-py-darkself is a customized fork of the discord.py-self library.
The primary feature of this fork is the complete isolation of its namespace. In this version, the standard discord package namespace and all its internal/external imports have been renamed to discord_self.
This allows you to install and use this library concurrently alongside the official, upstream discord.py library (used for regular bot accounts) within the same Python environment without experiencing any naming conflicts or dependency collisions.
How to Use
Instead of using the standard discord import, use discord_self and discord_self.ext for commands and tasks:
import discord_self
from discord_self.ext import commands
bot = commands.Bot(command_prefix='!', self_bot=True)
@bot.event
async def on_ready():
print(f'Logged on as {bot.user} (ID: {bot.user.id})')
@bot.command()
async def ping(ctx):
await ctx.send('pong')
bot.run('YOUR_ACCOUNT_TOKEN_HERE')
Installation
Python 3.10 or higher is required.
You can install the library directly from your GitHub repository using pip:
pip install git+https://github.com/Darknife339/discord.py-darkself.git
If you have cloned the repository locally and wish to install it in editable mode for development:
cd discord.py-darkself
pip install -e .
Disclaimer
Automating user accounts (self-botting) is against the Discord Terms of Service (ToS). This library is a proof of concept and is intended strictly for educational and research purposes. The author of this fork assumes no responsibility for any account terminations or penalties incurred while using this software. Use it entirely at your own risk.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file discord_py_darkself-1.0.1.tar.gz.
File metadata
- Download URL: discord_py_darkself-1.0.1.tar.gz
- Upload date:
- Size: 690.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b94b8128a7d390749634df01ad1fdd723c8c1d4d389def8bffdb1a07283d01e5
|
|
| MD5 |
3526e447ec1075d302114c16898826ac
|
|
| BLAKE2b-256 |
2916dfd093f30189a29980456c431997088715c7045b0f3c26df9c443269b207
|
File details
Details for the file discord_py_darkself-1.0.1-py3-none-any.whl.
File metadata
- Download URL: discord_py_darkself-1.0.1-py3-none-any.whl
- Upload date:
- Size: 822.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c515d3e31646247b5b8dd128be6290806649c6ed65753230a65d95e6c4e8205
|
|
| MD5 |
bfa2a2ae0ae107eb7648f590e8346ac4
|
|
| BLAKE2b-256 |
cdcb54ee1b9a57d938c9ada950432b6700045fb1bfb5b1a782fc6a03adcecda2
|