Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

honey-team/pytecord_old_archive

Repository files navigation

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