Skip to content

Commit

Permalink
fucking choice
Browse files Browse the repository at this point in the history
  • Loading branch information
howardt12345 committed Oct 2, 2024
1 parent 87e7a2a commit 2c6ca5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/fucking/fucking.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from modules import logging
from discord import app_commands
from pathlib import Path
from random import randint
from random import randint, choice


GO_THE_FUCK_TO_SLEEP_URLS = ["https://www.youtube.com/watch?v=teIbh8hFQos", # original
Expand Down Expand Up @@ -32,7 +32,7 @@ async def go_the_fuck_to_sleep(interaction: discord.Interaction, user_to_ping: d
current_user_id = interaction.user.id
current_time = time.time()
time_difference = current_time - (user_timestamps.get(current_user_id, {}).get("gothefucktosleep", 0))
url = GO_THE_FUCK_TO_SLEEP_URLS[randint(0, len(GO_THE_FUCK_TO_SLEEP_URLS)-1)]
url = choice(GO_THE_FUCK_TO_SLEEP_URLS)
if time_difference < COOLDOWN_DURATION:
await interaction.response.send_message(
f"<@{current_user_id}> {url} (cooldown: {round(COOLDOWN_DURATION - time_difference)}s)"
Expand Down

0 comments on commit 2c6ca5e

Please sign in to comment.