-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
Here is part of my code:
let MumbleClient;
mumble.connect( 'mumble://localhost', options, (error,client) => {
if( error ) { throw new Error( error ); }
client.authenticate( 'sh1bot' );
client.on( 'initialized', () => {
console.log('Connected to Mumble');
});
client.on('message', (message,user,scope) => {
if(user.name != "sh1bot") MatrixClient.sendTextMessage("!iYtzSBNGLHCIxfsRpO:matrix.org", user.name+": "+message);
});
MumbleClient = client;
});
When I trying to do MumbleClient.sendMessage from outside mumble.connect it show this error:
Caught /sync error TypeError: Cannot read property 'sendMessage' of undefined
at MatrixClient.CreateClient.MatrixClient.on (/home/sh1omi/Desktop/BridgeBot/index.js
:73:21)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels