mak448a / AI-Drawing-Chatbot

An image generator Discord bot written in Python with no GPU requirement! It can be easily deployed to your favorite VPS for hosting.
MIT License
28 stars 5 forks source link

Here is a simple script to create time stamps #44

Closed mishl-dev closed 1 year ago

mishl-dev commented 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}")

image

mishl-dev commented 1 year ago

nvm discord.py has a util for it