mirror of
https://github.com/tiennm99/claude-status-webhook.git
synced 2026-10-14 16:17:12 +00:00
feat: ignore messages that reply to bot's own messages
This commit is contained in:
1 parent
3bfae8f182
commit
4651f11af7
1 file changed
+4
@@ -157,6 +157,10 @@ function createBot(token) {
|
||||
registerInfoCommands(bot);
|
||||
|
||||
bot.on("message", async (ctx) => {
|
||||
const replyTo = ctx.message?.reply_to_message;
|
||||
if (replyTo && replyTo.from?.id === ctx.me.id) {
|
||||
return;
|
||||
}
|
||||
await ctx.reply(
|
||||
"<b>Claude Status Bot</b>\n\n" +
|
||||
"/help — Detailed command guide\n" +
|
||||
|
||||
Reference in new issue
Block a user