semvec/pypi-packages huggingface dataset:
poppins 0.1.2
A UI Library for Discord.py
License: MIT
Requires Python: >=3.8,<4.0
Keywords: Discord,Discord.py,UI,Frontend,Python3

# Poppins
## Quick-start
### Install
```bash
pip install Poppins
```

### Usage
```python
from discord.ext import commands


from poppins import ui
from poppins import template_commands
from poppins import client

Bot = commands.AutoShardedBot(command_prefix=commands.when_mentioned_or("pop!"), help_command=template_commands.Help())

@Bot.event
async def on_ready(ctx: commands.Context):
    #  You should use discord.ext.tasks for this instead but that is too big for this simple example.
    await client.Presence(
        style=client.PresenceStyle.HELP_AND_GUILDS,
        bot=Bot,
        help_command="pop!help",
        guild_count=len(Bot.guilds),
    )

@Bot.command()
async def ping(ctx: commands.Context):
    await ctx.send(embed=template_commands.Ping(latency=Bot.latency))

@Bot.command()
async def my_successful_command(ctx: commands.Context):
    await ctx.send(embed=ui.Alert(ui.AlertStyle.SUCCESS, "Title", "Description (can be none)"))

Bot.run("yourtokenhere")
```