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.0.tar.gz (690.5 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.0-py3-none-any.whl (822.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: discord_py_darkself-1.0.0.tar.gz
  • Upload date:
  • Size: 690.5 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.0.tar.gz
Algorithm Hash digest
SHA256 4efe8616407b1e74307bb3e21e8c24b033678a403574730c841e8b23e20fe181
MD5 8f3aca7930643c23d64c9d2d82cb2aab
BLAKE2b-256 b557a7f7d5d08421d1bef7de911fc42d1bedf045393c93ab620da3bd8eb83bb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for discord_py_darkself-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db32d0871bb1645ad47a7f7418ea3e23626326707d1176fccc01cd4634433b26
MD5 15f1e98c61ae8462b89effa5782200c7
BLAKE2b-256 adb164e6e8357921a028a438809196fba6c4f8d4fde4c30f3af1265accc6f79c

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