From d84202809b3034eb1883e9c9cdd0fb19431c7f10 Mon Sep 17 00:00:00 2001 From: cerusabi <47790183+cerusabi@users.noreply.github.com> Date: Thu, 17 Aug 2023 04:15:42 +0000 Subject: [PATCH] recolor blurple --- blurple/ui/style.py | 4 ++-- static/alerts/primary.svg | 2 +- static/alerts/secondary.svg | 2 +- test.py | 10 ++-------- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/blurple/ui/style.py b/blurple/ui/style.py index 08c1605..81b8289 100644 --- a/blurple/ui/style.py +++ b/blurple/ui/style.py @@ -29,8 +29,8 @@ class Style(Enum): Alternatively, if you want, you can support me on `ko-fi `_, 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") diff --git a/static/alerts/primary.svg b/static/alerts/primary.svg index b836f3a..7f60aa0 100644 --- a/static/alerts/primary.svg +++ b/static/alerts/primary.svg @@ -1,5 +1,5 @@ - + \ No newline at end of file diff --git a/static/alerts/secondary.svg b/static/alerts/secondary.svg index 5067575..5dec353 100644 --- a/static/alerts/secondary.svg +++ b/static/alerts/secondary.svg @@ -1,5 +1,5 @@ - + \ No newline at end of file diff --git a/test.py b/test.py index 1978e22..66fa958 100644 --- a/test.py +++ b/test.py @@ -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) @@ -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"))