Easy and flexible Discord wrapper built on aiohttp
Project description
TinyCord 🏮
Easy and flexible Discord wrapper built on aiohttp
Thanks to Pincer because we did take a lot of ideas and things from it <3
Example
import tinycord
client = tinycord.Client(
"Token", intents=[tinycord.Intents.all()]
)
@client.event
async def on_message(message: tinycord.Message):
print(message.content)
@client.lisnten(tinycord.Events.messageUpdate)
async def update_message(before: tinycord.Message, after: tinycord.Message):
print(f'{before.content} -> {after.content}')
client.connect()
Auto Shard Example
import tinycord
client = tinycord.Client(
"Token", intents=[tinycord.Intents.all()]
)
@client.event
async def on_message(message: tinycord.Message):
print(message.content)
@client.lisnten(tinycord.Events.messageUpdate)
async def update_message(before: tinycord.Message, after: tinycord.Message):
print(f'{before.content} -> {after.content}')
client.connect_autosharded()
Plugin
import tinycord
plugin = tinycord.Plugin('test')
@plugin.event
async def on_ready(shard):
print(f'{shard} is ready!')
Docs
HELP!
Discord
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Tinycord-0.3.0.tar.gz
(44.8 kB
view details)
File details
Details for the file Tinycord-0.3.0.tar.gz.
File metadata
- Download URL: Tinycord-0.3.0.tar.gz
- Upload date:
- Size: 44.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
697d989d4ddf15d615e301b433dec178b6cc6807e1a35eaa826d5c8ec29f11dd
|
|
| MD5 |
eab5df08bfdea05a411a25b6a0e2bfa9
|
|
| BLAKE2b-256 |
b57573b701d76155f7f72e096691d57d1fb5d1b3417edb5dd7b71650c437201d
|