sizumita / dpybrew

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dpybrew

Documentation Status

A discord.py extension/service manager

Installation

You can install dpybrew from Pypi.

$ pip install dpybrew

Useage

Show extension list

$ dpybrew list

or

$ dpybrew list your-extensions-path

Install extensions

$ dpybrew install [extension-name]

or

$ dpybrew install git+url -dir cogs/

All extensions -> https://gist.github.com/sizumita/19ec79e3ad0ecfae89cca665ddf717e1

Services

Pagenator

import discord
from dpybrew.service import Pagenator

class MyPagenator(Pagenator):
    def get_embed(self, page):
        embed = discord.Embed(title=str(page+1))
        return embed

# in client
pagenator = Pagenator(client, 10)

# run
await pagenator.start(message)

# or
await pagenator.start_by_context(context)

Features

  • TODO

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

About

License:MIT License


Languages

Language:Python 81.8%Language:Makefile 17.8%Language:Shell 0.3%