Metadata-Version: 2.4
Name: udiscord
Version: 1.3.8
Summary: Library for creating discord bots and scripts.
Home-page: https://github.com/alx0rr/discord
Download-URL: https://github.com/alx0rr/discord/archive/refs/heads/main.zip
Author: alx0rr
Author-email: anon.mail.al@proton.me
License: MIT
Keywords: discord.py,discord,discord-py,discord-bot,api,python,python3,python3.x,alx0rr,official,sync,async,udiscord,discord-self-bot
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: requests
Requires-Dist: ujson
Requires-Dist: logging
Requires-Dist: websocket-client
Requires-Dist: colorama
Requires-Dist: aiohttp
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: download-url
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: summary

<body>
	<h1 align="center">
		<img src="https://github.com/alx0rr/discord/blob/main/docs/res/banner.png" alt="UDISCORD">
	</h1>
	<p align="center">
	    <a href="https://github.com/alx0rr/discord/releases"><img src="https://img.shields.io/github/v/release/alx0rr/discord" alt="GitHub release" />
	    <a href="https://pypi.org/project/udiscord/"><img src="https://img.shields.io/pypi/v/udiscord.svg" alt="Pypi version" />
	    <img src="https://img.shields.io/pypi/dm/udiscord" />
	    <a href="https://github.com/alx0rr/discord/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="license" /></a>
	    <a href="https://github.com/alx0rr/discord/blob/main/docs/index.md"><img src="https://img.shields.io/website?down_message=failing&label=docs&up_color=green&up_message=passing&url=https://github.com/alx0rr/discord/blob/main/docs/index.md" alt="docs" /></a>
	</p>
	<br>
	<p align="center"><b>UDISCORD</b> — A library for creating user bots on Discord based on unofficial API, obtained by analyzing web traffic and mobile app traffic.</p>
	<p align="center">
		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.
	</p>
	<p align="center">
		⚠️ Important! Abuse of this library for malicious purposes or violation of Discord's rules may lead to account suspension or banning.
	</p>
	<h2 align="center">Code Examples</h2>
	<h3>🔹 Login with Email and Password</h3>

```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()
```
<h3>🔹 Command and Event Handling</h3>

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

<div align="center">
	<a href="https://github.com/alx0rr/discord/blob/main/docs/index.md">
		<img src="https://readme-typing-svg.demolab.com?font=Fira+Code&size=14&duration=1&pause=31&color=3DACF7&random=false&width=195&lines=Read+the+documentation" alt="Read the documentation"/>
	</a>
</div>
</body>
