Fix command detection and improve weather timing

This commit is contained in:
2026-02-02 23:30:57 +03:00
parent 845ef7c531
commit a61f526ce4
5 changed files with 38 additions and 18 deletions

View File

@@ -271,7 +271,12 @@ class SpotifyMusicController:
r"(следующ|дальше|скип|пропусти|next|skip)",
]
for pattern in next_patterns:
if re.search(pattern, text_lower) and "трек" in text_lower or "песн" in text_lower or "skip" in text_lower or "next" in text_lower:
if re.search(pattern, text_lower) and (
"трек" in text_lower
or "песн" in text_lower
or "skip" in text_lower
or "next" in text_lower
):
return self.next_track()
# Предыдущий трек