Skip to main content

An async API wrapper for Octra bot API in Python

Project description

Logo

Octra.py

PyPI PyPI - Python Version Documentation Status GitHub - License Octra Channel

An async API wrapper for Octra bot API in Python

Installation

Python 3.7+ is required to install and use Octra.py.

Install the latest release from PyPI:

# Mac/Linux
python3 -m pip install Octra.py

# Windows
py -3 -m pip install Octra.py

Or install the development version from GitHub:

# Mac/Linux
python3 -m pip install git+https://github.com/Octra/Octra.py

# Windows
py -3 -m pip install git+https://github.com/Octra/Octra.py

Quick Example

import logging

import Octrapy
from Octrapy.ext import commands

logging.basicConfig(level=logging.INFO, format="(%(asctime)s) %(levelname)s %(message)s", datefmt="%m/%d/%y - %H:%M:%S %Z")
logger = logging.getLogger("Octrapy")

bot = commands.Bot("token here")

@bot.command()
async def hi(ctx):
    await ctx.send("Hello")

bot.run()

For a line-by-line walkthrough for this example, see the quickstart.

Documentation

Documentation can be found here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Octra.py-1.8.68.tar.gz (19.5 kB view hashes)

Uploaded Source

Built Distribution

Octra.py-1.8.68-py3-none-any.whl (25.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page