The following changes were made by the replace_file_content tool to: /root/aadharbot/index.js. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission.
[diff_block_start]
@@ -700,22 +700,6 @@
redisClient
});
-bot.command(['ping', 'Ping'], async (ctx) => {
- const start = Date.now();
- const msg = await ctx.reply("Pinging server...", { parse_mode: 'HTML' });
- const latency = Date.now() - start;
-
- const pingText = `PONG!\n` +
- `━━━━━━━━━━━━━━━━━━━━━━━━━━\n` +
- `Engine: Ultra-Fast v3.0\n` +
- `Ping: ${latency}ms\n` +
- `Server Status: Online 🟢\n` +
- `━━━━━━━━━━━━━━━━━━━━━━━━━━`;
-
- return ctx.telegram.editMessageText(ctx.chat.id, msg.message_id, undefined, pingText, { parse_mode: 'HTML' }).catch(() => {
- ctx.reply(pingText, { parse_mode: 'HTML' });
- });
-});
bot.catch((err, ctx) => {
[diff_block_end]
Please note that the above snippet only shows the MODIFIED lines from the last change. It shows up to 3 lines of unchanged lines before and after the modified lines. The actual file contents may have many more lines not shown.