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.3.tar.gz (691.1 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.3-py3-none-any.whl (822.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: discord_py_darkself-1.0.3.tar.gz
  • Upload date:
  • Size: 691.1 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.3.tar.gz
Algorithm Hash digest
SHA256 7a2ba61002bc75addb8f244d8b5298c36e43715c5d5f8e199dcfb2ab73f6b2e1
MD5 9551fedd49b26ba120d2cfd77f86f459
BLAKE2b-256 e5de1d0ef0026fa63539c197c7d508dd9d23954d8cdbaa590f6721cb27fd84e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for discord_py_darkself-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0416c8bcccd07175bd286fb63ebd8fded8942a3636877539e6da1470df363029
MD5 8d89c9b2f2466a236a1ecd79c991a201
BLAKE2b-256 b06c37aebcd26cc6483758ec6378c2fd96ac6684049ab74d35d52dd98d865b5a

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