Commit 695ffdd600e7b64851707da46bab80d29a9464ce
1 parent
1eace2f530
Exists in
master
hapus subscribe to partner
Showing 1 changed file with 0 additions and 18 deletions Side-by-side Diff
index.js
... | ... | @@ -111,28 +111,10 @@ function reportToSMSIN(from, message) { |
111 | 111 | }); |
112 | 112 | } |
113 | 113 | |
114 | -function subscribeToPartners() { | |
115 | - if (!config.h2h_out.allow_response_from) { | |
116 | - return; | |
117 | - } | |
118 | - | |
119 | - let partners = config.h2h_out.allow_response_from.trim().split(/\s*,\s*/); | |
120 | - let count = partners.length; | |
121 | - for (let i=0; i<count; i++) { | |
122 | - logger.verbose('Subscribing ' + partners[i]); | |
123 | - xmpp.subscribe(partners[i]); | |
124 | - } | |
125 | -} | |
126 | - | |
127 | 114 | xmpp.on('online', function(data) { |
128 | 115 | logger.info('XMPP online', {data: data}); |
129 | 116 | logger.info('Connected with JID: ' + data.jid.user); |
130 | 117 | |
131 | - try { | |
132 | - subscribeToPartners(); | |
133 | - } | |
134 | - catch(e) {} | |
135 | - | |
136 | 118 | setTimeout(function() { |
137 | 119 | warming_up = false; |
138 | 120 | logger.info('BOT selesai warming up, pesan-pesan selanjutnya akan diproses'); |