sftmumblebot
sftmumblebot copied to clipboard
Bot will attempt to relay before connection is established
(3) mumble: unknown text message sender id: 0
(2) mumble: text message received, sender: unknown
mumble: unknown: <strong>WARNING:</strong> Your client doesn't support the Opus
codec the server is switching to, you won't be able to talk or hear anyone. Plea
se upgrade to a client with Opus support.
(1) irc: could not send text message: <type 'exceptions.Exception'>
(2) irc: Traceback (most recent call last):
(2) irc: File "C:\Users\SwedFTP\Desktop\BTCBot\AbstractConnection.py", line 21
9, in sendTextMessage
(2) irc: raise Exception("connection not established")
(2) irc: Exception: connection not established
(2) irc:
the problem here is that the threads run independently. we'd have to wait for the other thread to be connected, or just dump the message. what you can see currently, is the dump.
An other (the ideal?) solution would be to always add messages for relaying to a queue.queue
that is read by the bot when it's connected.