stfca 1.0.1 → 1.0.2

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.
@@ -598,7 +598,7 @@ function loginHelper(appState, Cookie, email, password, globalOptions, callback)
598
598
  const userDataMatch = String(html).match(/\["CurrentUserInitialData",\[\],({.*?}),\d+\]/);
599
599
  if (userDataMatch) {
600
600
  const info = JSON.parse(userDataMatch[1]);
601
- console.log(`[FCA-INFO] Đăng nhập tài khoản: ${info.NAME} (${info.USER_ID})`);
601
+ console.log(`[FCA-INFO] Bot Name: ${info.NAME} (${info.USER_ID})`);
602
602
  } else if (userID) {
603
603
  console.log(`[FCA-INFO] ID người dùng: ${userID}`);
604
604
  }
@@ -623,7 +623,7 @@ function loginHelper(appState, Cookie, email, password, globalOptions, callback)
623
623
  console.error(error);
624
624
  console.error("Database connection failed:", error && error.message ? error.message : String(error));
625
625
  });
626
- console.log("[FCA-INFO] FCA fix/update by DongDev (Donix-VN)");
626
+ console.log("[FCA-INFO] FCA maintain by ST | Sheikh Tamim");
627
627
  const ctxMain = {
628
628
  userID,
629
629
  jar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stfca",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Unofficial Facebook Chat API for Node.js",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -88,7 +88,7 @@ module.exports = function createListenMqtt(deps) {
88
88
  });
89
89
  mqttClient.on("connect", function () {
90
90
  if (process.env.OnStatus === undefined) {
91
- console.log("[FCA-INFO] fca-unofficial connected");
91
+ console.log("[FCA-INFO] ST FCA connected");
92
92
  process.env.OnStatus = true;
93
93
  }
94
94
  topics.forEach(topicsub => mqttClient.subscribe(topicsub));
@@ -120,7 +120,7 @@ module.exports = function (defaultFuncs, api, ctx) {
120
120
  ctx._autoCycleTimer = null;
121
121
  }
122
122
  ctx._autoCycleTimer = setInterval(forceCycle, 60 * 60 * 1000);
123
- console.log("[FCA-INFO] MQTT auto-cycle enabled 3600000ms");
123
+ console.log("[FCA-INFO] MQTT auto-cycle enabled 1hour");
124
124
  if (!ctx.firstListen || !ctx.lastSeqId) getSeqIDWrapper();
125
125
  else {
126
126
  console.log("[FCA-INFO] MQTT starting listenMqtt");