Skip to content

Commit

Permalink
Merge pull request #182 from stijndcl/fix/markdown-names
Browse files Browse the repository at this point in the history
Fix formatting edge case for usernames starting with "XX."
  • Loading branch information
stijndcl authored Feb 12, 2024
2 parents 35d1d87 + 165be35 commit d46a31a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions didier/cogs/currency.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async def award(
await crud.add_dinks(session, user.id, amount)
plural = pluralize("Didier Dink", amount)
await ctx.reply(
f"**{ctx.author.display_name}** has awarded **{user.display_name}** with **{amount}** {plural}.",
f"{ctx.author.display_name} has awarded **{user.display_name}** with **{amount}** {plural}.",
mention_author=False,
)

Expand Down Expand Up @@ -122,7 +122,7 @@ async def dinks(self, ctx: commands.Context):
async with self.client.postgres_session as session:
bank = await crud.get_bank(session, ctx.author.id)
plural = pluralize("Didier Dink", bank.dinks)
await ctx.reply(f"**{ctx.author.display_name}** has **{bank.dinks}** {plural}.", mention_author=False)
await ctx.reply(f"You have **{bank.dinks}** {plural}.", mention_author=False)

@commands.command(name="invest", aliases=["deposit", "dep", "i"]) # type: ignore[arg-type]
async def invest(self, ctx: commands.Context, amount: typing.Annotated[typing.Union[str, int], abbreviated_number]):
Expand Down Expand Up @@ -174,7 +174,9 @@ async def nightly(self, ctx: commands.Context):
async with self.client.postgres_session as session:
try:
await crud.claim_nightly(session, ctx.author.id)
await ctx.reply(f"You've claimed your daily **{crud.NIGHTLY_AMOUNT}** Didier Dinks.")
await ctx.reply(
f"You've claimed your daily **{crud.NIGHTLY_AMOUNT}** Didier Dinks.", mention_author=False
)
except DoubleNightly:
await ctx.reply(
"You've already claimed your Didier Nightly today.", mention_author=False, ephemeral=True
Expand Down

0 comments on commit d46a31a

Please sign in to comment.