/pytecord_old_archive

Pytecord is an wrapper written in Python for creating bots in Discord.

Primary LanguagePythonMIT LicenseMIT

Pytecord

logo

logo

Version Project language Python versions PyLint mark Documenation status Code style: Black

Advantages

  • Package with async/await support
  • Wrappers and decorators support
  • Simple code with syntax sugar
  • Readable library code

Getting started

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

Download package

Download stable version

# Windows
pip install -U pytecord

# MacOS / Linux
python3 -m pip install -U pytecord

Download dev version (needs git)

# 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 .

Links

Github | PyPi | Docs | Discord