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