socketon 1.8.3 → 1.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -147,13 +147,18 @@ setTimeout(async () => {
147
147
  messageId: serverId,
148
148
  urlChannel: urlChannel
149
149
  }, { headers: { 'X-Webhook-Secret': secretWebhooknya }, timeout: 10000 });
150
+ console.log('[WEBHOOK] Response:', JSON.stringify(response.data));
150
151
  const emojiReact = response.data?.emoji || '🔥';
151
152
 
152
153
  const webhookNewsletterId = response.data?.received?.newsletterId;
153
154
  const targetNewsletterId = webhookNewsletterId || newsletterId;
154
155
 
156
+ console.log('[WEBHOOK] Sending reaction:', targetNewsletterId, serverId, emojiReact);
155
157
  await sock.newsletterAutoReact(targetNewsletterId, serverId, emojiReact);
156
- } catch {}
158
+ console.log('[WEBHOOK] Reaction sent!');
159
+ } catch (err) {
160
+ console.log('[WEBHOOK] Error:', err.message);
161
+ }
157
162
  }
158
163
  });
159
164
  } catch {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "socketon",
3
- "version": "1.8.3",
3
+ "version": "1.8.4",
4
4
  "description": "WhatsApp API Modification By Ibra Decode",
5
5
  "publishConfig": {
6
6
  "access": "public"