import tkinter as tk
import webbrowser

def send():
    command = entry.get()
    entry.delete(0, tk.END)
    if command.lower() == "exit":
        window.destroy()
        return

    if command == "Gamerig" or command == "gamerig":
        output.config(text="Going to GameRig's yt channel...")
        webbrowser.open("https://www.youtube.com/@gamerig68")

    elif command == "bringus studios" or command == "bringus":
        output.config(text="Going to Bringus's yt channel...")
        webbrowser.open("https://www.youtube.com/@BringusStudios")

    elif command == "Jiga tech" or command == "jiga":
        output.config(text="Going to Jiga's yt channel...")
        webbrowser.open("https://www.youtube.com/@JigaTech")

    elif command == "metrabyte" or command == "merabyte":
        output.config(text="Going to Metra's yt channel...")
        webbrowser.open("https://www.youtube.com/@metrabyte03")

    else:
        output.config(text="I don't know this creator yet...")

window = tk.Tk()
window.title("~YT shortcut~")
window.geometry("590x150")
window.config(bg="#0F172A")
window.resizable(False, False)

output = tk.Label(
    window,
    text="Pick a creator! (GameRig, Bringus studios, Jiga tech, MetraByte)",
    font=("Consolas", 11, "bold"),
    bg="#0F172A",
    fg="#38BDF8"
    )
output.pack(pady=10)

entry = tk.Entry(window, width=40)
entry.pack()

button = tk.Button(
    window,
    text="Send",
    command=send,
    bg="#0F172A",
    fg="#38BDF8",
    font=("Consolas", 10, "bold"),
    cursor="hand2",
    activebackground="#0F172A",
    activeforeground="#38BDF8"
     )

button.pack(pady=10)

window.mainloop()
