- Package with
async/await
support - Wrappers and decorators support
- Simple code with syntax sugar
- Readable library code
Pytecord is package for creating bots in Discord. This package use discord API and discord Gateway for handle events or, for example, sending messages. Bot use for different goals; handle information on your server, creating mini games in discord, auto moderation in your discord server and other.
For example, you can reply to message that is sended by any user using this code:
from pytecord import Client, Message # Import library
import os
TOKEN = os.environ['TOKEN']
client = Client(token=TOKEN) # Create a client
@client.event
async def message(message: Message): # Message create event
await message.reply('Hello!') # Reply to the message
client() # Run client
# Windows
pip install -U pytecord
# MacOS / Linux
python3 -m pip install -U pytecord
# Windows
git clone https://github.com/pixeldeee/pytecord.git
cd pytecord
pip install -U .
# MacOs / Linux
git clone https://github.com/pixeldeee/pytecord.git
cd pytecord
python3 -m pip install -U .