Skip to content

Commit

Permalink
This good idea.
Browse files Browse the repository at this point in the history
  • Loading branch information
ltzmax committed Oct 2, 2024
1 parent 7197106 commit 077802f
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions counting/counting.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,11 @@ async def count_stats(self, ctx: commands.Context, user: Optional[discord.User]
last_count_time = datetime.fromisoformat(last_count_timestamp)
time = discord.utils.format_dt(last_count_time, style="R")

await ctx.send(f"{msg_box}\nYou Last Counted: {time}")
await ctx.send(
f"{msg_box}\nYou Last Counted: {time}",
reference=ctx.message.to_reference(fail_if_not_exists=False),
mention_author=False,
)

@counting.command(name="resetme", with_app_command=False)
async def reset_me(self, ctx: commands.Context):
Expand All @@ -247,9 +251,17 @@ async def reset_me(self, ctx: commands.Context):
user_config = self.config.user(ctx.author)
await user_config.count.set(0)
await user_config.last_count_timestamp.clear()
await ctx.send("Your counting stats have been reset.")
await ctx.send(
"Your counting stats have been reset.",
reference=ctx.message.to_reference(fail_if_not_exists=False),
mention_author=False,
)
else:
await ctx.send("Reset cancelled.")
await ctx.send(
"Reset cancelled.",
reference=ctx.message.to_reference(fail_if_not_exists=False),
mention_author=False,
)

@commands.group()
@commands.guild_only()
Expand Down

0 comments on commit 077802f

Please sign in to comment.