Fixed invocation message. No longer triggers on everything
Doubled default delay
This commit is contained in:
parent
aa15cd33b0
commit
fc26a1418f
|
|
@ -47,7 +47,7 @@ waiton_pattern = re.compile("^waiton")
|
|||
scroll_pattern = re.compile("^scroll")
|
||||
true_scroll_pattern = re.compile("^truescroll")
|
||||
housejob_pattern = re.compile("^(house)?job")
|
||||
kong_pattern = re.compile("")
|
||||
kong_pattern = re.compile("^kong")
|
||||
|
||||
def main():
|
||||
#Init slack
|
||||
|
|
|
|||
3
kong.py
3
kong.py
|
|
@ -4,6 +4,7 @@ from SlackUtil import reply
|
|||
from time import sleep
|
||||
|
||||
DEFAULT_SONG = "dk_rap_classic"
|
||||
DEFAULT_DELAY = 2000
|
||||
|
||||
#Patterns
|
||||
patterns = {}
|
||||
|
|
@ -25,7 +26,7 @@ class SongThread(threading.Thread):
|
|||
super().__init__()
|
||||
self.song_name = song_name
|
||||
self.callback = callback
|
||||
self.delay = 1000
|
||||
self.delay = DEFAULT_DELAY
|
||||
self.daemon = True
|
||||
|
||||
def run(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue