Closed mishl-dev closed 1 year ago
import time def generate_timestamps(): current_timestamp = int(time.time()) timestamps = {} for style in ["t", "T", "d", "D", "f", "F", "R"]: formatted_timestamp = f"<t:{current_timestamp}:{style}>" timestamps[style] = formatted_timestamp return timestamps formatted_timestamps = generate_timestamps() for style, timestamp in formatted_timestamps.items(): print(f"Style: {style}, Timestamp: {timestamp}")
nvm discord.py has a util for it