Skip to main content

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

discord_py_darkself-1.0.2.tar.gz (690.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

discord_py_darkself-1.0.2-py3-none-any.whl (822.5 kB view details)

Uploaded Python 3

File details

Details for the file discord_py_darkself-1.0.2.tar.gz.

File metadata

  • Download URL: discord_py_darkself-1.0.2.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

Hashes for discord_py_darkself-1.0.2.tar.gz
Algorithm Hash digest
SHA256 dc61447dfff6b80e63c75718ff8f1edfe61d9b3bbee9edc733994eb8a4ccdb67
MD5 1a1c68c95d366d87d76e489c82b521a7
BLAKE2b-256 a8d569ee80bcbeaa304e892293715a67f432ffd7a9991f0aa503657e12daa2ed

See more details on using hashes here.

File details

Details for the file discord_py_darkself-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for discord_py_darkself-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4b7a307f54b37f700f00a912e50ad4372cc522960aab81428163b9d7a5991e04
MD5 b7fb86532ed3b86920567071ee95a94f
BLAKE2b-256 2c6adfddda69b983fde75d2a5a4968eeb66c3fb3b09d63f64d9efd5cb304e6c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page