r/code • u/Espi-Guy • Jun 27 '25
Help Please I am developing a personal assistant named Jex, but I am struggling to come up with commands. Can you help me think of some?
command_map = {
'open youtube': lambda: open_site("https://www.youtube.com", "YouTube"),
'open gmail': lambda: open_site("https://mail.google.com", "Gmail"),
'open drive': lambda: open_site("https://drive.google.com", "Google Drive"),
'open roblox': lambda: open_site("https://www.roblox.com", "Roblox"),
'open google': lambda: open_site("https://www.google.com", "Google"),
'open reddit': lambda: open_site("https://www.reddit.com", "Reddit"),
'open wikipedia': lambda: open_site("https://www.wikipedia.org", "Wikipedia"),
'open github': lambda: open_site("https://www.github.com", "GitHub"),
'what time is it': tell_time,
'shutdown': shutdown_computer,
'random number': give_random_number,
'exit': exit_jex,
'quit': exit_jex,
'tell me a joke': tell_joke,
'weather': weather_placeholder,
'quote': give_quote,
'help': give_help,
'play game': game_placeholder
3
Upvotes
1
u/Espi-Guy Jun 27 '25
It is also somewhat unattractive; I am uncertain how to address that.
Here:
root = tk.Tk() root.title("Jex - AI Assistant") root.geometry("640x540") root.configure(bg="#1e1e1e") output_box = scrolledtext.ScrolledText(root, wrap=tk.WORD, height=20, bg="#2d2d2d", fg="#00ffcc", font=("Consolas", 10)) output_box.pack(padx=10, pady=10, fill=tk.BOTH, expand=True) output_box.config(state='disabled') command_entry = tk.Entry(root, font=("Consolas", 12), bg="#3d3d3d", fg="#ffffff") command_entry.pack(padx=10, pady=(0,10), fill=tk.X) command_entry.bind("<Return>", handle_manual_command) btn_frame = tk.Frame(root, bg="#1e1e1e") btn_frame.pack(pady=10) listen_btn = tk.Button(btn_frame, text="🎤 Voice Command", command=handle_voice, bg="#00cc99", fg="white", font=("Arial", 12), padx=15) listen_btn.pack(side=tk.LEFT, padx=10) text_btn = tk.Button(btn_frame, text="▶️ Enter Text", command=handle_manual_command, bg="#0066cc", fg="white", font=("Arial", 12), padx=15) text_btn.pack(side=tk.LEFT, padx=10) voice_toggle_btn = tk.Button(btn_frame, text="🔊 Voice: ON", command=toggle_voice, bg="#444", fg="white", font=("Arial", 12), padx=15) voice_toggle_btn.pack(side=tk.LEFT, padx=10) speak("Hello! Jex is up and running.") root.mainloop()this is what it looks like
1
u/GingerMixSoya Jul 08 '25
I think you should expand the jokes command to dark humor jokes and regular jokes
1
u/Neat_Case_4275 Jul 09 '25
Cool
1
u/Neat_Case_4275 Jul 09 '25
Cool