mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
as
This commit is contained in:
@@ -98,12 +98,10 @@ class SRBuffer(voice_recv.AudioSink):
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
self.wavewriter = {
|
self.wavewriter = {}
|
||||||
"346956223645614080" : [WaveWriter("346956223645614080"), time.time_ns(), False]
|
|
||||||
}
|
|
||||||
|
|
||||||
def on_user_connect(self, username):
|
def on_user_connect(self, username):
|
||||||
self.wavewriter[str(username)] = WaveWriter(username)
|
self.wavewriter[str(username)] = [WaveWriter(username), time.time_ns(), False]
|
||||||
|
|
||||||
def on_user_disconnect(self,username):
|
def on_user_disconnect(self,username):
|
||||||
self.wavewriter[str(username)].cleanup()
|
self.wavewriter[str(username)].cleanup()
|
||||||
|
|||||||
Reference in New Issue
Block a user