prioritize youtube command over others

kind of a workaround, idk
This commit is contained in:
jan6 2023-04-08 02:28:13 +03:00
parent 8dcd8e9b9c
commit ce4ad587c3
1 changed files with 3 additions and 3 deletions

View File

@ -100,6 +100,9 @@ class Command:
command = "quit"
elif cmd.startswith("echo "):
command = "echo"
elif cmd.startswith("yt ") or self.YouTube.match_urls(self.YouTube, cmd) != []:
command = "yt"
needs_prefix = False
elif cmd.startswith("w ") or cmd.startswith("weather "):
command = "weather"
elif cmd.startswith("me "):
@ -108,9 +111,6 @@ class Command:
command = "dbg"
elif cmd == "dbg2" or cmd.startswith("dbg2 "):
command = "dbg2"
elif cmd.startswith("yt ") or self.YouTube.match_urls(self.YouTube, cmd) != []:
command = "yt"
needs_prefix = False
elif cmd.startswith("\x01") or self.is_ctcp:
command = "ctcp"
else: