Skip to content

Commit

Permalink
recolor blurple
Browse files Browse the repository at this point in the history
  • Loading branch information
cysabi committed Aug 17, 2023
1 parent 7e0df7d commit d842028
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
4 changes: 2 additions & 2 deletions blurple/ui/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class Style(Enum):
Alternatively, if you want, you can support me on `ko-fi <https://ko-fi.com/s/7705c20532>`_, and I'll invite your bot to my server with the original custom emojis.
"""
PRIMARY = (0x7289DA, "<:primary:1141303057351712800>", "Primary")
SECONDARY = (0x99AAB5, "<:secondary:1141303059490820156>", "Secondary")
PRIMARY = (0x5865F2, "<:primary:1141577169039020052>", "Primary")
SECONDARY = (0x99AAB5, "<:secondary:1141577170095976518>", "Secondary")
SUCCESS = (0x77B255, "\u2705", "Success")
DANGER = (0xDD2E44, "\U0001f6ab", "Danger")
WARNING = (0xFFCC4D, "\u26a0\ufe0f", "Warning")
Expand Down
2 changes: 1 addition & 1 deletion static/alerts/primary.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion static/alerts/secondary.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 2 additions & 8 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def message(ctx):
async def reaction(ctx):
message = await ctx.send("Enter reaction.")
reply = await io.ReactionAddReply(ctx,
validate=["<:primary:1141303057351712800>", "<:secondary:1141303059490820156>"],
validate=["<:primary:1141577169039020052>", "<:secondary:1141577170095976518>"],
message=message).result()
await ui.Alert(ui.Style.SUCCESS, "Valid Reply", str(reply.emoji)).send(ctx)

Expand All @@ -64,13 +64,7 @@ async def multiple(ctx):

@router.route(["toast"])
async def toast(ctx):
message = await ctx.send("Show Toast:")
await message.add_reaction("<:primary:1141303057351712800>")
while True:
reply = await io.ReactionAddBasic(ctx,
validate=["<:primary:1141303057351712800>"],
message=message).result()
await ui.Toast(ui.Style.SUCCESS, f"Valid Reply: {str(reply.emoji)}").send(ctx)
await ui.Toast(ui.Style.INFO, f"This is a toast!").send(ctx)


bot.run(os.getenv("TOKEN"))

0 comments on commit d842028

Please sign in to comment.