Update app.py
Browse files
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.")
|