updated content match message with all possible matches and contextes
This commit is contained in:
parent
451412973c
commit
20c0e8b8d5
@ -132,6 +132,8 @@ async def main():
|
||||
context = message_content[start_pos:end_pos]
|
||||
words.append(word)
|
||||
contexts.append(context)
|
||||
break
|
||||
if words:
|
||||
await client.send_message(channel_id, f"Keyword Match: {', '.join(words)}\nContext: {', '.join(contexts)}")
|
||||
await asyncio.sleep(0.1)
|
||||
await event.message.forward_to(channel_id)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user