Skip to main content

discord-py-darkself

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.

Metadata

Release files for discord-py-darkself 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for discord-py-darkself 1.0.4
File Size Uploaded Provenance Actions
discord_py_darkself-1.0.4.tar.gz 691.3 kB Without provenance Details for discord_py_darkself-1.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for discord-py-darkself 1.0.4
File Interpreter ABI Platform Actions
discord_py_darkself-1.0.4-py3-none-any.whl Python 3 none any Details for discord_py_darkself-1.0.4-py3-none-any.whl

Total release size: 1.5 MB

Release files / discord_py_darkself-1.0.4.tar.gz

Download URL discord_py_darkself-1.0.4.tar.gz
Size 691.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6d83bcce1ab1327218dc1d96d0c27594fd93d8209a5160fde44b417272387f7b
BLAKE2b-256 checksum
How to use checksums
6551d6fcf307e026557f613053984035911dff175ad6132d998f471aa833e80e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Release files / discord_py_darkself-1.0.4-py3-none-any.whl

Download URL discord_py_darkself-1.0.4-py3-none-any.whl
Size 822.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f88cad36463653be9fad2adb017d2f1adbedac2bd2e9e4f381004bb3b4db9ab9
BLAKE2b-256 checksum
How to use checksums
47539e5adfe76b36ea9f0102d63d051164a90bcd59e8ff1069b0dd94ecbd12a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.2

Security for discord-py-darkself 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page