Closed Ayanotaro closed 1 year ago
Actually instead of copying and pasting the whole code, you should show the error you have got?!
For now try this:
from AppOpener import open as run, close
elif 'open app' in query:
speak("Which app do you want to open?")
APP = takeCommand()
run(str(APP), match_closest=True)
Do tell me if this works 🤝
Sorry For The Late Reply I Am New To Github But Thanks It's Fixed Really Thanks
I was trying to implement this library in my chatbot but even if i use the match_closest command the app wouldn't open is there anything i can do?
` import subprocess,requests,wolframalpha,json,datetime,wikipedia,webbrowser,os,winshell,pyjokes,smtplib,ctypes,time,winsound,pyautogui,time import speech_recognition as sr from urllib.request import urlopen import customtkinter as ctk import pyttsx3 as p from AppOpener import open, close
class App(ctk.CTk): def init(self, *args, *kwargs): super().init( args, **kwargs)
def runchatbot(app): engine = p.init('sapi5') rate = engine.getProperty('rate') engine.setProperty('rate', 180) voices = engine.getProperty('voices') engine.setProperty('voices', voices[0].id)
app = App()
button = ctk.CTkButton(app, command=lambda: runchatbot(app)).grid(row=0,column=0) app.mainloop()`