remove commented autojoin code. please use the proper join command

develop
lub 7 years ago
parent e370790ad4
commit 363fe5e97d

@ -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);