DiscordGIR / Bloo

The best Discord bot, created for r/Jailbreak
MIT License
36 stars 10 forks source link

Switch to menus #1

Closed ja1dan closed 2 years ago

ja1dan commented 2 years ago

This commit adds menus to the Bloo codebase, which are invokable by using a simple class like so:

async def format_page(entry, all_pages, current_page):
    embed = discord.Embed(title=f"Example embed for page {current_page}/{len(all_pages)}")
    return embed

Menu(result, bot, ctx.channel, format_page, False, ctx, False).init_menu()