https://github.com/0sir1ss/buttons
A simple to use, interactive session and paginator with custom buttons for discord.py built on github.com/EvieePy/buttons.
https://github.com/0sir1ss/buttons
Last synced: 3 months ago
JSON representation
A simple to use, interactive session and paginator with custom buttons for discord.py built on github.com/EvieePy/buttons.
- Host: GitHub
- URL: https://github.com/0sir1ss/buttons
- Owner: 0sir1ss
- License: mit
- Created: 2021-08-28T23:21:08.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-10T01:46:03.000Z (about 3 years ago)
- Last Synced: 2025-01-20T01:28:44.795Z (4 months ago)
- Language: Python
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.rst
- License: LICENSE
Awesome Lists containing this project
README
Installation
---------------------------
**Buttons requires Python 3.6 or higher.****Windows**
.. code:: sh
py -version -m pip install git+https://github.com/0sir1ss/buttons.git
**Linux**
.. code:: sh
python3 -m pip install git+https://github.com/0sir1ss/buttons.git
Getting Started
----------------------------
A quick and easy paginator example:.. code:: py3
import discord
from discord.ext import commands
from discord.ext.buttons import Paginatorbot = commands.Bot(command_prefix=';')
@bot.command()
async def test(ctx):
pag = Paginator(
title='Paginator +', colour=discord.Colour.blurple(), entries=[1, 2, 3], length=1, format='**',
footer='more options!', author='0sir1s#0669', author_url='https://cdn.glassbot.club/glass.png'
)await pag.start(ctx)
@bot.event
async def on_ready():
print('Ready!')bot.run('TOKEN')