mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Add a cooldown to stats
This commit is contained in:
parent
7d6214a88a
commit
f1b28a528f
2 changed files with 2 additions and 1 deletions
|
@ -151,7 +151,6 @@ class Events(commands.Cog):
|
|||
G_EMOJI = "\U0001f3f3\U0000fe0f\U0000200d\U0001f308"
|
||||
N_EMOJI = "\U0001f922"
|
||||
C_EMOJI = "\U0000271d\U0000fe0f"
|
||||
# if is_naus or re.match(rf"(trans(gender)?|{T_EMOJI}|femboy)\b", message.content.lower()):
|
||||
if any((x in message.content.lower() for x in ("trans", T_EMOJI, "femboy"))) or is_naus:
|
||||
try:
|
||||
await message.add_reaction(N_EMOJI)
|
||||
|
|
|
@ -263,6 +263,8 @@ class UptimeCompetition(commands.Cog):
|
|||
uptime = discord.SlashCommandGroup("uptime", "Commands for the uptime competition.")
|
||||
|
||||
@uptime.command(name="stats")
|
||||
@commands.max_concurrency(1, commands.BucketType.user, wait=True)
|
||||
@commands.cooldown(1, 10, commands.BucketType.user)
|
||||
async def stats(
|
||||
self,
|
||||
ctx: discord.ApplicationContext,
|
||||
|
|
Loading…
Reference in a new issue