All Projects → robertwayne → dpymenus

robertwayne / dpymenus

Licence: MIT license
Simplified menus for discord.py developers.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to dpymenus

ContextMenuSwift
A better version of iOS 13 Context Menu
Stars: ✭ 162 (+478.57%)
Mutual labels:  menus
PHP-Quick-Menu
This is a PHP Multilevel Menu class. From nested Json|Array to Html menu (ul)
Stars: ✭ 25 (-10.71%)
Mutual labels:  menus
discord-bots
Repo for the source code of DuckBot, and my other Discord bots!
Stars: ✭ 32 (+14.29%)
Mutual labels:  discord-py
opensource-discordbots
Curated list of awesome open-source Discord Bots
Stars: ✭ 19 (-32.14%)
Mutual labels:  discord-py
gonsole
Integrated console application library, using Go structs as commands, with menus, completions, hints, history, Vim mode, $EDITOR usage, and more ...
Stars: ✭ 18 (-35.71%)
Mutual labels:  menus
gui
A very simple library to facilitate the menu creation in the Bukkit API
Stars: ✭ 55 (+96.43%)
Mutual labels:  menus
react-push-menu
react multi level push menu
Stars: ✭ 37 (+32.14%)
Mutual labels:  menus
discord-hero
A powerful, modular and easy-to-use Discord bot framework. Batteries included!
Stars: ✭ 30 (+7.14%)
Mutual labels:  discord-py
table2ascii
Python library for converting lists to fancy ASCII tables for displaying in the terminal and on Discord
Stars: ✭ 31 (+10.71%)
Mutual labels:  discord-py
birthday.py
🎉 A simple discord bot in discord.py that helps you understand the usage of SQL databases
Stars: ✭ 30 (+7.14%)
Mutual labels:  discord-py
nextcord
A Python wrapper for the Discord API forked from discord.py
Stars: ✭ 956 (+3314.29%)
Mutual labels:  discord-py
vue-bottom-navigation
Vue bottom navigation
Stars: ✭ 56 (+100%)
Mutual labels:  menus
DingoLingo
A Discord music bot written in Python with support for Youtube, SoundCloud, Spotify, Bandcamp, Twitter, and custom files.
Stars: ✭ 183 (+553.57%)
Mutual labels:  discord-py
TearDrops
A sad discord bot made using discord.py
Stars: ✭ 13 (-53.57%)
Mutual labels:  discord-py
drawbot
A Pronote notifier discord bot.
Stars: ✭ 30 (+7.14%)
Mutual labels:  discord-py
Discord-Bot
Discord Bot written in Python that plays music in your voice channel
Stars: ✭ 36 (+28.57%)
Mutual labels:  discord-py
MudaeAutoBot
python bot that uses strictly the **Discord API** to Roll,Claim,and Kakera Snipe in Mudae. 5/10/21 project converted over to discum library
Stars: ✭ 102 (+264.29%)
Mutual labels:  discord-py
spirit
Spirit is a Destiny 2 Discord bot to assist players with everything from clan management to keeping track of in game events.
Stars: ✭ 24 (-14.29%)
Mutual labels:  discord-py
Red-Lavalink
Lavalink client library used in Red-DiscordBot
Stars: ✭ 22 (-21.43%)
Mutual labels:  discord-py
Discord-Study-Bot
Discord-Study-Bot is a Study-Time-based leaderboard system in discord servers. This features an Overall leaderboard and leaderboards based on a Daily, Weekly, and Monthly basis.
Stars: ✭ 20 (-28.57%)
Mutual labels:  discord-py

Discord Menus

With the recent news that `discord.py` will no longer be mainainted, as well as my own bot being moved over to Rust w/ Twilight for several months now, this project will no longer be maintained.


Simplified menus for discord.py developers.

Version Docs Python Version


user creates an embed, reaction buttons are added, and user navigates the
menu by clicking the buttons

Table of Contents

The Book
API Docs
Examples





Features

dpymenus is an unofficial add-on for the discord.py library that lets you quickly compose various styles of menus which react to user input.

  • Handles text & button input, normalization, and validation
  • Easy-to-build menus with paginated data, multiple choices, and polls
  • Template system for quickly defining a cohesive style for your menus
  • User-defined callbacks & event hooks for complex use-cases
  • Awesome examples and documentation to get rolling quickly

Quick Start

pip install dpymenus

Read "Installation" from The Book for further information.

Examples

from discord.ext import commands
from dpymenus import Page, PaginatedMenu


class Demo(commands.Cog):
    def __init__(self, client):
        self.client = client

    @commands.command()
    async def demo(self, ctx: commands.Context):
        page1 = Page(title='Page 1', description='First page test!')
        page1.add_field(name='Example A', value='Example B')

        page2 = Page(title='Page 2', description='Second page test!')
        page2.add_field(name='Example C', value='Example D')

        page3 = Page(title='Page 3', description='Third page test!')
        page3.add_field(name='Example E', value='Example F')

        menu = PaginatedMenu(ctx)
        menu.add_pages([page1, page2, page3])
        await menu.open()


def setup(client):
    client.add_cog(Demo(client))

The examples directory contains working examples for almost every feature of the library.

In addition, the chapter on "Examples" walks you through setting up the built-in example runner.

Support

If you are looking for support on how to use particular library functions, please ask in the discussions tab.

If you've encountered a bug, submit an issue.

In addition, feel free to add me on Discord @ Rob (롭)#0013 -- I am open to discuss the library and assist when I am free, but I prefer you use the GitHub options as it may help other people as well.

Contributing

dpymenus is open-source for a reason -- I welcome all additions, bug fixes, and changes if they fit within the scope of the library. Please see the chapter on "Contributing" in the book for detailed information. Don't be shy!


Have you found this library useful? Please leave a on the project -- it means a lot to me!

Check out my other discord.py utility: cogwatch -- Automatic hot-reloading for your discord.py command files.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].