Upload case.js
Browse files
case.js
CHANGED
@@ -3169,21 +3169,23 @@ case 'scan': {
|
|
3169 |
};
|
3170 |
|
3171 |
const updatesAvailable = await checkForUpdates();
|
3172 |
-
const updateStatus = updatesAvailable
|
|
|
|
|
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:
|