<div align="center">
<h1 align="center">SELFCORD</h1>
<strong><i>A Powerful Library for Discord Selfbots</i></strong>
<br>
<br>
<a href="https://www.python.org/">
<img src="https://img.shields.io/badge/MADE%20WITH-PYTHON-red?logoColor=red&logo=Python&style=for-the-badge">
</a>
<a href="https://pypi.org/project/selfcord/">
<img src="https://img.shields.io/badge/version-1.0.2-blue?logo=adguard&style=for-the-badge">
</a>
<a href="https://github.com/OmegaDevStudio/Selfcord/wiki">
<img src="https://img.shields.io/badge/documentation-green?logo=gitbook&style=for-the-badge">
</a>
</div>
## 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](https://github.com/Shell1010/Selfcord/wiki) in regards to documentation and getting started.
## Getting Started
A selfbot that responds to a message ("ping!") with another message ("pong").
```py
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
```python
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
```python
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.
```python
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](https://2captcha.com/?from=15127673) is the only captcha solving service supported currently.
## Some Useful Links
- [Documentation](https://github.com/Shell1010/Selfcord/wiki)
- [Other Documentation (messy)](https://github.com/Shell1010/Selfcord/tree/main/docs)
- [PyPi](https://pypi.org/project/selfcord.py/)
- [Official Discord Server](https://discord.gg/FCFnnBGzkg)
- [A simple selfbot designed to showcase the library's features](https://github.com/Shell1010/Aeterna-Selfbot)
## Contributing
Contributors are always Welcome
Raw data
{
"_id": null,
"home_page": "https://github.com/OmegaDevStudio/Selfcord",
"name": "selfcord.py",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "selfbot,discord,discordapi,discordwrapper",
"author": "Shell",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/62/8d/5687a7ee243551a137cbecd29065a99844b5f958165eac36d0e66b2895ae/selfcord.py-1.0.2.tar.gz",
"platform": null,
"description": "<div align=\"center\">\n<h1 align=\"center\">SELFCORD</h1>\n<strong><i>A Powerful Library for Discord Selfbots</i></strong>\n<br>\n<br>\n<a href=\"https://www.python.org/\">\n<img src=\"https://img.shields.io/badge/MADE%20WITH-PYTHON-red?logoColor=red&logo=Python&style=for-the-badge\">\n</a>\n<a href=\"https://pypi.org/project/selfcord/\">\n<img src=\"https://img.shields.io/badge/version-1.0.2-blue?logo=adguard&style=for-the-badge\">\n</a>\n<a href=\"https://github.com/OmegaDevStudio/Selfcord/wiki\">\n<img src=\"https://img.shields.io/badge/documentation-green?logo=gitbook&style=for-the-badge\">\n</a>\n</div>\n\n## Feautres\n - Modern Pythonic API using `async`/`await` syntax\n - Easy to use with an object oriented design\n - Optimised for both speed and memory\n - Prevents detection of user account automation\n - Multi-token support\n - Clean Documentation (not real)\n - Community Support\n\n## Installation\nPython 3.10 or higher is required.\n```\npip install selfcord.py\n```\n\n## Wiki\n\nRead our [Wiki](https://github.com/Shell1010/Selfcord/wiki) in regards to documentation and getting started.\n\n## Getting Started\nA selfbot that responds to a message (\"ping!\") with another message (\"pong\").\n```py\nimport selfcord\n\ntoken = \"insert token\"\nbot = selfcord.Bot()\n\n@bot.on(\"ready\")\nasync def ready(time):\n print(f\"Connected To {bot.user.name}\\n Startup took {time:0.2f} seconds\")\n\n@bot.on(\"message\")\nasync def responder(message):\n if message.content == \"ping!\":\n await message.channel.send(\"pong!\")\n\nbot.run(token)\n```\n## Examples/Usage\n### Message logger\nIn 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\n```python\nimport selfcord\n\ntoken = \"insert token\"\nbot = selfcord.Bot(prefixes=[\"!\", \"?\"])\n\n@bot.on(\"ready\")\nasync def ball(time):\n print(f\"Connected To {bot.user}\\n Startup took {time:0.2f} seconds\")\n\n@bot.on(\"message_delete\")\nasync def message_logger(message):\n # DISCLAIMER: If message is not in bots cache only message id, channel id and guild id will be present\n if message.author != None:\n if message.author.id != bot.user.id:\n if message.guild != None: # If the message is in a guild\n await aprint(f\"\"\"MESSAGE LOGGED:\nSERVER: {message.guild.name}\nCHANNEL: {message.channel.name}\nCONTENT:\n{message.author}: {message.content}\n\"\"\")\n else: # If the message is in a DM or Group chat\n await aprint(f\"\"\"MESSAGE LOGGED:\nCHANNEL: {message.channel}\nCONTENT:\n{message.author}: {message.content}\n \"\"\")\n\nbot.run(token)\n```\n### Purge command\nIn this snippet, you are able to delete certain amount of messages from a channel\n```python\nimport selfcord\n\ntoken = \"insert token\"\nbot = selfcord.Bot(prefixes=[\"!\", \"?\"])\n\n@bot.on(\"ready\")\nasync def ball(time):\n print(f\"Connected To {bot.user}\\n Startup took {time:0.2f} seconds\")\n\n@bot.cmd(description=\"Purges the channel\", aliases=[\"wipe\", \"clear\"])\nasync def purge(ctx, amount: int=None):\n await ctx.purge(amount)\n\nbot.run(token)\n```\n\n### Deleted message sniper\nIn this snippet, you can retrieve the most recently deleted message.\n```python\nimport selfcord\n\ntoken = \"insert token\"\nbot = selfcord.Bot(prefixes=[\"!\", \"?\"])\n\n@bot.on(\"ready\")\nasync def ball(time):\n print(f\"Connected To {bot.user}\\n Startup took {time:0.2f} seconds\")\n\n@bot.cmd(description=\"Snipe\", aliases=['s'])\nasync def snipe(ctx):\n await ctx.reply(f\"{bot.user.deleted_messages[-1].author}: {bot.user.deleted_messages[-1]}\")\n\nbot.run(token)\n```\n### Captcha\n[2Captcha](https://2captcha.com/?from=15127673) is the only captcha solving service supported currently.\n\n## Some Useful Links\n- [Documentation](https://github.com/Shell1010/Selfcord/wiki)\n- [Other Documentation (messy)](https://github.com/Shell1010/Selfcord/tree/main/docs)\n- [PyPi](https://pypi.org/project/selfcord.py/)\n- [Official Discord Server](https://discord.gg/FCFnnBGzkg)\n- [A simple selfbot designed to showcase the library's features](https://github.com/Shell1010/Aeterna-Selfbot)\n\n## Contributing\nContributors are always Welcome\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Discord API wrapper designed for selfbots!",
"version": "1.0.2",
"project_urls": {
"Homepage": "https://github.com/OmegaDevStudio/Selfcord"
},
"split_keywords": [
"selfbot",
"discord",
"discordapi",
"discordwrapper"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "da9be12258aeefb6ec3cfb04e6594c738e9bb3e1ce7083dc96e0066e9103fd8e",
"md5": "771d9b37b9e35c2b46f5bbf7e2949a9d",
"sha256": "a185cefd46124bd9938e77fc4c2db9cac78817921de1fe63f4c51926c159dd15"
},
"downloads": -1,
"filename": "selfcord.py-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "771d9b37b9e35c2b46f5bbf7e2949a9d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 48125,
"upload_time": "2024-02-17T18:43:30",
"upload_time_iso_8601": "2024-02-17T18:43:30.784834Z",
"url": "https://files.pythonhosted.org/packages/da/9b/e12258aeefb6ec3cfb04e6594c738e9bb3e1ce7083dc96e0066e9103fd8e/selfcord.py-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "628d5687a7ee243551a137cbecd29065a99844b5f958165eac36d0e66b2895ae",
"md5": "2436521fe52846892560ab4d247abc1e",
"sha256": "227c26d599c0b38de6115d3db82f01950bb9c0876bd6a11c6d3040ee04b3cf93"
},
"downloads": -1,
"filename": "selfcord.py-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "2436521fe52846892560ab4d247abc1e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 41835,
"upload_time": "2024-02-17T18:43:32",
"upload_time_iso_8601": "2024-02-17T18:43:32.007702Z",
"url": "https://files.pythonhosted.org/packages/62/8d/5687a7ee243551a137cbecd29065a99844b5f958165eac36d0e66b2895ae/selfcord.py-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-17 18:43:32",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "OmegaDevStudio",
"github_project": "Selfcord",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "selfcord.py"
}