https://github.com/xxxclotixxx/discord
A simple library for working with the social network Discord via web API
https://github.com/xxxclotixxx/discord
bot discord discord-py discordbot discordpy python
Last synced: about 2 months ago
JSON representation
A simple library for working with the social network Discord via web API
- Host: GitHub
- URL: https://github.com/xxxclotixxx/discord
- Owner: xXxCLOTIxXx
- License: mit
- Created: 2023-04-01T20:22:47.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-19T00:49:13.000Z (3 months ago)
- Last Synced: 2025-03-28T13:21:31.654Z (2 months ago)
- Topics: bot, discord, discord-py, discordbot, discordpy, python
- Language: Python
- Homepage:
- Size: 1.97 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
![]()
UDISCORD — A library for creating user bots on Discord based on unofficial API, obtained by analyzing web traffic and mobile app traffic.
UDISCORD provides access to various features for managing a Discord account, such as bans, kicks, sending messages, receiving events, and much more. The library is designed for ease of use and allows automating many processes on Discord.
⚠️ Important! Abuse of this library for malicious purposes or violation of Discord's rules may lead to account suspension or banning.
Code Examples
🔹 Login with Email and Password
```python
from udiscord import Client, Message# Create a client instance
client = Client()# Log in with email and password (this also initiates the socket connection)
info = client.login(email="email", password="password")
print(info.token) # Prints the token after successful login# Log out and disconnect from the socket
client.logout()
```🔹 Command and Event Handling
```python
@client.command(["!commands", "/commands"])
def get_commands(message: Message):
# The bot will reply saying it doesn't have commands
client.send_message(message.channelId, "Sorry, I don't have commands :_(")
```