Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
amalthomas-exe committed Jan 29, 2021
1 parent 0c7f0ae commit 8814fee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def get_bot_response():
elif "play music" in userText:
import os
from pathlib import Path
music_directory = str(Path.home())+"\\Music"
music_directory = os.path.join(os.path.expanduser("~"), "Music")
music_ext = ["mp3", "wav", "ogg"]
playables = [i for i in os.listdir(music_directory) if i.split(".")[-1] in music_ext]

Expand Down

0 comments on commit 8814fee

Please sign in to comment.