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(comamnds.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.0.8.tar.gz
(4.8 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.0.8.tar.gz.
File metadata
- Download URL: discake-0.0.8.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe76660fab15db9a98cf786c68fe6af3599ce92ee53919bb2675dace38b45af7
|
|
| MD5 |
f2d8eae8f8100e35a4edde61fb9e96d3
|
|
| BLAKE2b-256 |
96782add182c081b3b4f3482a8ba015c0e30061b4861a7ea3287b995149857d2
|
File details
Details for the file discake-0.0.8-py3-none-any.whl.
File metadata
- Download URL: discake-0.0.8-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 |
dea1859d4e9fcb5d9c48ce0a8f632efffda5eb25ce9fce7d8c678155350df8e4
|
|
| MD5 |
31e9a3a7c34c08df6856284f57fef07e
|
|
| BLAKE2b-256 |
82c1b4bb5608794b78699f582d2ddeaf087a9d2754ccc2df8645f94056d878a0
|