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.5.tar.gz
(4.7 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.5.tar.gz.
File metadata
- Download URL: discake-0.0.5.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e06ce71f59993162f09f9c358005573e6b9c9c8664a138f90766b82f63568475
|
|
| MD5 |
937b7d250eb046edeef64a305f4be6ec
|
|
| BLAKE2b-256 |
7e7905eecdc141a11d2e82d695e6f47959d3cb679ed6655b7b8c1a65fb4fb811
|
File details
Details for the file discake-0.0.5-py3-none-any.whl.
File metadata
- Download URL: discake-0.0.5-py3-none-any.whl
- Upload date:
- Size: 5.4 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 |
10346a3fbbabb7dbfa4e97b3da9bb847c87887ea15baad50376a2e29e49b6e06
|
|
| MD5 |
991d1f5ebf8d39d51c8741318b86c4ab
|
|
| BLAKE2b-256 |
dc0acdb4ea6bc48a40e8887d1a8bc9f8b2d26a9fa584bed023184fcfe27166f6
|