Skip to main content

File driven wrappers around lightbulb extensions and plugins.

Project description

Hecate

File driven wrappers around lightbulb extensions and plugins.

Installation

Hecate can be installed through pip

pip install lightbulb-ext-hecate

First Steps

A pong slash command template for a basic hecate extension can be generated by running

python -m lightbulb.ext.hecate --template REL_PATH_TO_PY

granted a .py extension file already exists in the desired directory.

The following directory structure

.
└── extension.py

will become

.
├── slash-commands
│   ├── pong_count.py
│   └── ping.py
├── __modify__.py
└── extension.py

Usage

# Import the Plugin class
from lightbulb.ext.hecate import Plugin

# Create a Plugin instance (__file__ is necessary to fetch the commands and events in other files)
plugin = Plugin('EXTENSION', __file__)

# Plain lightbulb extension load method
def load(bot):
    bot.add_plugin(plugin)

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

lightbulb_ext_hecate-0.1.5.tar.gz (7.2 kB view hashes)

Uploaded Source

Built Distribution

lightbulb_ext_hecate-0.1.5-py3-none-any.whl (9.7 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