Fix carbon issues

master
q3k 2013-10-19 20:34:14 +02:00
parent 6496fbd7a8
commit 8066995da5
1 changed files with 2 additions and 3 deletions

View File

@ -32,10 +32,9 @@ SPATH = "sounds/"
play_again_at = time.time()
def logmesohard(name):
return
s = socket.socket()
s.connect(('10.8.1.1', 2003))
s.sendall('hackerspace.soundboard.{} 1'.format(name.replace('.', '_')))
s.connect(('10.8.1.1', 2023))
s.sendall('hackerspace.soundboard.{} 1 {}\n'.format(name.replace('.', '_'), int(time.time())))
s.close()
print("Playing {}".format(name))