remove commented autojoin code. please use the proper join command

master
lub 7 years ago
parent 0cb978d9d0
commit 264e8e1a4f

@ -10,15 +10,6 @@ global.matrixClient = sdk.createClient({
userId: config.matrix.userid
});
// Autojoin for the bot (keep commented out when not needed to prevent abuse)
/*matrixClient.on('RoomMember.membership', function(event, member) {
if(member.membership === 'invite' && member.userId === userid) {
matrixClient.joinRoom(member.roomId).done(function() {
console.log('Auto-joined %s', member.roomId);
});
}
});*/
//captures unhandled rejections for easier debugging
process.on('unhandledRejection', (reason) => {
console.log('Reason: ' + reason);