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

Uploaded Python 3

File details

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

File metadata

  • Download URL: discord_py_darkself-1.0.4.tar.gz
  • Upload date:
  • Size: 691.3 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.4.tar.gz
Algorithm Hash digest
SHA256 6d83bcce1ab1327218dc1d96d0c27594fd93d8209a5160fde44b417272387f7b
MD5 92f62194affe99b84615e6a0f0ee0bd0
BLAKE2b-256 6551d6fcf307e026557f613053984035911dff175ad6132d998f471aa833e80e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for discord_py_darkself-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f88cad36463653be9fad2adb017d2f1adbedac2bd2e9e4f381004bb3b4db9ab9
MD5 4f8969c6aae7ccf781249da7ac365c40
BLAKE2b-256 47539e5adfe76b36ea9f0102d63d051164a90bcd59e8ff1069b0dd94ecbd12a8

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