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.4.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.4.tar.gz.
File metadata
- Download URL: discake-0.0.4.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 |
466818516a39b175eabe3af0d499923c85355d8be8c02acfc882529e722ef8e6
|
|
| MD5 |
889be9921c40980d192dc4a970dfae6e
|
|
| BLAKE2b-256 |
701f425a7161803337f13f4bd38eeb167395bdc653c783e88bccd4f52a2d063e
|
File details
Details for the file discake-0.0.4-py3-none-any.whl.
File metadata
- Download URL: discake-0.0.4-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 |
c9b44c2e6d6332c80774a140dbba3ae6a8be81ba29a7b9906dbc93e713dbaecc
|
|
| MD5 |
99a4c8772f34b52ac3a01e87ccca381b
|
|
| BLAKE2b-256 |
0e1ee7ce91da59c68ae52989085670537e46d6716f66e815d094731cba8d1952
|