soxogvv commited on
Commit
75a85b3
·
verified ·
1 Parent(s): 7c67b0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -101,6 +101,9 @@ async def cleanup_handler(event):
101
  async def link_collector(event):
102
  if not is_owner(event): return
103
  ctx = user_context[event.sender_id]
 
 
 
104
  links = [l.strip() for l in event.text.split() if l.startswith("http")]
105
  ctx["links"].extend(links)
106
  await event.reply(f"🔗 {len(links)} link(s) added.")
 
101
  async def link_collector(event):
102
  if not is_owner(event): return
103
  ctx = user_context[event.sender_id]
104
+ if ctx["mode"] not in ["raw", "reacted"]:
105
+ return # Skip if it's correction-used or something else
106
+
107
  links = [l.strip() for l in event.text.split() if l.startswith("http")]
108
  ctx["links"].extend(links)
109
  await event.reply(f"🔗 {len(links)} link(s) added.")