Skip to content

alx0rr/discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UDISCORD

GitHub release Pypi version license docs


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

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

@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 :_(")

About

A simple library for working with the social network Discord via web API

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages