:o) hOnK
This commit is contained in:
parent
14b812b08c
commit
85b535bfdc
2 changed files with 6 additions and 1 deletions
|
@ -1751,6 +1751,9 @@ class PesterWindow(MovingWindow):
|
||||||
self.namesound.play()
|
self.namesound.play()
|
||||||
return
|
return
|
||||||
if self.config.memoSound():
|
if self.config.memoSound():
|
||||||
|
if re.search(r"\bhonk\b", convertTags(msg, "text"), re.I):
|
||||||
|
self.honksound.play()
|
||||||
|
else:
|
||||||
self.memosound.play()
|
self.memosound.play()
|
||||||
|
|
||||||
def changeColor(self, handle, color):
|
def changeColor(self, handle, color):
|
||||||
|
@ -1991,11 +1994,13 @@ class PesterWindow(MovingWindow):
|
||||||
self.memosound = pygame.mixer.Sound(theme["main/sounds/memosound"])
|
self.memosound = pygame.mixer.Sound(theme["main/sounds/memosound"])
|
||||||
self.namesound = pygame.mixer.Sound("themes/namealarm.wav")
|
self.namesound = pygame.mixer.Sound("themes/namealarm.wav")
|
||||||
self.ceasesound = pygame.mixer.Sound(theme["main/sounds/ceasesound"])
|
self.ceasesound = pygame.mixer.Sound(theme["main/sounds/ceasesound"])
|
||||||
|
self.honksound = pygame.mixer.Sound("themes/honk.wav")
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
self.alarm = NoneSound()
|
self.alarm = NoneSound()
|
||||||
self.memosound = NoneSound()
|
self.memosound = NoneSound()
|
||||||
self.namesound = NoneSound()
|
self.namesound = NoneSound()
|
||||||
self.ceasesound = NoneSound()
|
self.ceasesound = NoneSound()
|
||||||
|
self.honksound = NoneSound()
|
||||||
|
|
||||||
def changeTheme(self, theme):
|
def changeTheme(self, theme):
|
||||||
# check theme
|
# check theme
|
||||||
|
|
BIN
themes/honk.wav
Normal file
BIN
themes/honk.wav
Normal file
Binary file not shown.
Loading…
Reference in a new issue