Skip to main content

A Discord API wrapper designed for selfbots!

Project description

SELFCORD

A Powerful Library for Discord Selfbots

Feautres

  • Modern Pythonic API using async/await syntax
  • Easy to use with an object oriented design
  • Optimised for both speed and memory
  • Prevents detection of user account automation
  • Multi-token support
  • Clean Documentation (not real)
  • Community Support

Installation

Python 3.10 or higher is required.

pip install selfcord.py

Wiki

Read our Wiki in regards to documentation and getting started.

Getting Started

A selfbot that responds to a message ("ping!") with another message ("pong").

import selfcord

token = "insert token"
bot = selfcord.Bot()

@bot.on("ready")
async def ready(time):
    print(f"Connected To {bot.user.name}\n Startup took {time:0.2f} seconds")

@bot.on("message")
async def responder(message):
    if message.content == "ping!":
        await message.channel.send("pong!")

bot.run(token)

Examples/Usage

Message logger

In this snippet, If someone deletes messages in the server, it records details such as the server name, channel name, message content, and the author's name

import selfcord

token = "insert token"
bot = selfcord.Bot(prefixes=["!", "?"])

@bot.on("ready")
async def ball(time):
    print(f"Connected To {bot.user}\n Startup took {time:0.2f} seconds")

@bot.on("message_delete")
async def message_logger(message):
    # DISCLAIMER: If message is not in bots cache only message id, channel id and guild id will be present
    if message.author != None:
        if message.author.id != bot.user.id:
            if message.guild != None: # If the message is in a guild
                await aprint(f"""MESSAGE LOGGED:
SERVER: {message.guild.name}
CHANNEL: {message.channel.name}
CONTENT:
{message.author}: {message.content}
""")
        else: # If the message is in a DM or Group chat
            await aprint(f"""MESSAGE LOGGED:
CHANNEL: {message.channel}
CONTENT:
{message.author}: {message.content}
            """)

bot.run(token)

Purge command

In this snippet, you are able to delete certain amount of messages from a channel

import selfcord

token = "insert token"
bot = selfcord.Bot(prefixes=["!", "?"])

@bot.on("ready")
async def ball(time):
    print(f"Connected To {bot.user}\n Startup took {time:0.2f} seconds")

@bot.cmd(description="Purges the channel", aliases=["wipe", "clear"])
async def purge(ctx, amount: int=None):
    await ctx.purge(amount)

bot.run(token)

Deleted message sniper

In this snippet, you can retrieve the most recently deleted message.

import selfcord

token = "insert token"
bot = selfcord.Bot(prefixes=["!", "?"])

@bot.on("ready")
async def ball(time):
    print(f"Connected To {bot.user}\n Startup took {time:0.2f} seconds")

@bot.cmd(description="Snipe", aliases=['s'])
async def snipe(ctx):
    await ctx.reply(f"{bot.user.deleted_messages[-1].author}: {bot.user.deleted_messages[-1]}")

bot.run(token)

Captcha

2Captcha is the only captcha solving service supported currently.

Some Useful Links

Contributing

Contributors are always Welcome

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

selfcord_py-1.0.3.tar.gz (42.4 kB view details)

Uploaded Source

Built Distribution

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

selfcord_py-1.0.3-py3-none-any.whl (48.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: selfcord_py-1.0.3.tar.gz
  • Upload date:
  • Size: 42.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for selfcord_py-1.0.3.tar.gz
Algorithm Hash digest
SHA256 664d44b80a2112d2be18a5aba7661f8e6a51bf72fe484f21d5fd99c2e4587ad6
MD5 25171860aaa070aa435572225257b7d0
BLAKE2b-256 5ca21d1a8dcdb8f23bc69f4b33cb5e0f9feed0fa7fbd51f433200aa13fd4bdf0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: selfcord_py-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 48.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for selfcord_py-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ba4a08fe0c321c639ac17db4edfdbde463091f3f2cc2c13fb65a357a0bf587d7
MD5 4c7873644a0c703a5b05f02058ec61ad
BLAKE2b-256 4ced597a0f3c2d7a6da2de073b6f6431bd2842571f6f79c21fba2a0cc84d9cec

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