Skip to content

Commit

Permalink
fix(cogs): 🐛 Fix some more minor issues I discovered in prod
Browse files Browse the repository at this point in the history
A 3-for-1 special! Making the BumpReminderCog actually ping the roles, improving pagination in the PingRateLimits cog, and removing an extraneous space from the default leave message in the WelcomeCog.
  • Loading branch information
M1N0RM1N3R committed May 10, 2024
1 parent bd381dd commit d3ad22c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions kolkra_ng/cogs/bump_reminder.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ def __init__(self, bot: Kolkra) -> None:
async def __delayed_reminder(self, channel: MessageableChannel) -> None:
await asyncio.sleep(timedelta(hours=2).total_seconds())
await channel.send(
"".join([f"<@&{role}>" for role in self.config]) or None,
"".join([f"<@&{role}>" for role in self.config.ping_roles]) or None,
embed=Embed(
title="Time to bump!",
description="Bump our server by typing `/bump`!",
color=Color.yellow(),
).set_thumbnail(url=icons8("alarm-clock--v2", animated=True)),
).set_thumbnail(url=icons8("alarm")),
)

@commands.Cog.listener()
Expand Down
4 changes: 2 additions & 2 deletions kolkra_ng/cogs/ping_rate_limits.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from kolkra_ng.enums.staff_level import StaffLevel
from kolkra_ng.utils import audit_log_reason_template
from kolkra_ng.views.confirm import Confirm
from kolkra_ng.views.pager import Pager
from kolkra_ng.views.pager import Pager, group_embeds

log = logging.getLogger(__name__)

Expand Down Expand Up @@ -130,7 +130,7 @@ async def ping_rate_limits(self, ctx: KolkraContext) -> None:
embed = Embed(color=embed.color)
embed.add_field(name=role.name, value=value)
embeds.append(embed)
await Pager([[e] for e in embeds]).respond(ctx)
await Pager(group_embeds(embeds)).respond(ctx)

@ping_rate_limits.command(aliases=["clear"])
@commands.guild_only()
Expand Down
2 changes: 1 addition & 1 deletion kolkra_ng/cogs/welcome.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class WelcomeConfig(BaseModel):
"https://cdn.discordapp.com/attachments/1066917293935841340/1079624383804493864/Picsart_22-10-18_21-30-54-748.png" # No really, don't delete it
),
messages=[
"<a:Ouch:847300319071043604> {user} just left **{guild}**...\n"
"<a:Ouch:847300319071043604> {user} just left **{guild}**...\n"
"<a:1member:803768545816084480> <:splatbroke:1057109111097004103>"
],
)
Expand Down

0 comments on commit d3ad22c

Please sign in to comment.