Skip to content

Commit

Permalink
Made speak more permissive, fixed letitgo.mp3 sounds.
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyfw committed Nov 24, 2015
1 parent 28d9a1b commit 346306d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
bots_channel = 'wcms-bots'

play_regex = re.compile("^play\s([a-z0-9]+)$")
speak_regex = re.compile("^speak\s([a-zA-Z0-9,'!?\- ]+)$")
speak_regex = re.compile("^speak\s([a-zA-Z0-9.,'!?\- ]+)$")
play_yt_regex = re.compile("^play-yt\s<?(https?:\/\/[a-z./]*\?v=[a-zA-Z0-9_-]*)>?(\s([0-9.]*)\s([0-9.]*)$)?")
# lol that above regex matches the pattern:
# play-yt <yt video url> <start> <duration>
Expand Down
Binary file modified sounds/letitgo.mp3
Binary file not shown.

1 comment on commit 346306d

@szepeviktor
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@caseyfw Could it be that changing Slack desktop app's mp3 files (AppData\Local\slack\app-2.8.0\resources\ on Windows) does not get played but the original sound plays?

Please sign in to comment.