A discord py support library containing utilities.
Project description
A discord py util library.
Key Features
Button Paginator
Installing
Python 3.8 or higher is required
# Linux/macOS
python3 -m pip install -U discake
# Windows
py -3 -m pip install -U discake
Quick Example
import discord
from discord import Embed, Intents
from discord.ext import commands
from discake import Paginator
class MyBot(commands.Bot):
def __init__(self):
super().__init__(command_prefix = '!')
async def on_ready(self):
print('Logged on as', self.user)
client = MyBot(intents=Intents.default())
@client.command(name = 'paginate', description = 'Pagination using the library')
async def _paginate(ctx):
entry_list = []
for i in range(0,20):
embed = Embed(description = f'This is the {i}th page')
entry_list.append(embed)
paginate_object = Paginator(
entries = entry_list,
timeout = 10.0
)
await paginate_object.send(ctx)
client.run('TOKEN')
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
discake-0.1.0.tar.gz
(4.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file discake-0.1.0.tar.gz.
File metadata
- Download URL: discake-0.1.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59765e0c9b29d8eb95b438ab64af6e3b62a97bfbdb32c367c733e754a8057c44
|
|
| MD5 |
a8d96715211d97347dcb2b553ef5538c
|
|
| BLAKE2b-256 |
329e880315d4c2646d4e00703b121db425380b444ac7663c975a886df074544a
|
File details
Details for the file discake-0.1.0-py3-none-any.whl.
File metadata
- Download URL: discake-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d90d8f9ac123af8c833c804dd97747fc8c80cda1292a7ed57ef5f0fedd8f6d1b
|
|
| MD5 |
be4dd17ec04261296ed6035b89fedef2
|
|
| BLAKE2b-256 |
9f917973c0c97f8821cf7e5d9561e34d81033b663d96c08d3b712dc65927ec0f
|