API-XX commited on
Commit
53dd2c3
Β·
verified Β·
1 Parent(s): 8ebefdb

Upload case.js

Browse files
Files changed (1) hide show
  1. case.js +15 -14
case.js CHANGED
@@ -3169,21 +3169,23 @@ case 'scan': {
3169
  };
3170
 
3171
  const updatesAvailable = await checkForUpdates();
3172
- const updateStatus = updatesAvailable ? `πŸ›  *Update Available! Use .update*` : `βœ… *No Updates Found*`;
 
 
3173
 
3174
  const animations = [
3175
- `πŸ’» *System Check Initiated...*\n> ${caption}`,
3176
- `πŸ”„ *Loading Modules...*\n> ${caption}`,
3177
- `βœ… *Module: Messaging [OK]*`,
3178
- `βœ… *Module: Connectivity [OK]*`,
3179
- `βœ… *Module: AI Responses [OK]*`,
3180
- `πŸ” *Scanning for Updates...*`,
3181
  updateStatus,
3182
- `πŸ”„ *System Optimization: 87% Complete...*`,
3183
- `βœ… *System Optimization: Complete*`,
3184
- `πŸ“‘ *Establishing Secure Connection...*`,
3185
- `βœ… *Connection Established Successfully*`,
3186
- `πŸš€ *Ready for Commands!*\n> ${caption}`,
3187
  ];
3188
 
3189
  const initialMessage = await conn.sendMessage(m.chat, { text: animations[0] }, { quoted: m });
@@ -3205,7 +3207,7 @@ case 'scan': {
3205
 
3206
  } catch (err) {
3207
  console.error("Error in alive case:", err);
3208
- reply("An error occurred while processing your request.");
3209
  }
3210
  break;
3211
  }
@@ -3361,7 +3363,6 @@ case 'scan': {
3361
 
3362
 
3363
 
3364
-
3365
 
3366
 
3367
  default:
 
3169
  };
3170
 
3171
  const updatesAvailable = await checkForUpdates();
3172
+ const updateStatus = updatesAvailable
3173
+ ? fontx(`πŸ›  *Update Available! Use .update*`)
3174
+ : fontx(`βœ… *No Updates Found*`);
3175
 
3176
  const animations = [
3177
+ fontx(`πŸ’» *System Check Initiated...*\n> ${caption}`),
3178
+ fontx(`πŸ”„ *Loading Modules...*\n> ${caption}`),
3179
+ fontx(`βœ… *Module: Messaging [OK]*`),
3180
+ fontx(`βœ… *Module: Connectivity [OK]*`),
3181
+ fontx(`βœ… *Module: AI Responses [OK]*`),
3182
+ fontx(`πŸ” *Scanning for Updates...*`),
3183
  updateStatus,
3184
+ fontx(`πŸ”„ *System Optimization: 87% Complete...*`),
3185
+ fontx(`βœ… *System Optimization: Complete*`),
3186
+ fontx(`πŸ“‘ *Establishing Secure Connection...*`),
3187
+ fontx(`βœ… *Connection Established Successfully*`),
3188
+ fontx(`πŸš€ *Ready for Commands!*\n> ${caption}`)
3189
  ];
3190
 
3191
  const initialMessage = await conn.sendMessage(m.chat, { text: animations[0] }, { quoted: m });
 
3207
 
3208
  } catch (err) {
3209
  console.error("Error in alive case:", err);
3210
+ reply(fontx("❌ An error occurred while processing your request."));
3211
  }
3212
  break;
3213
  }
 
3363
 
3364
 
3365
 
 
3366
 
3367
 
3368
  default: