2023-04-19 06:11:28 +00:00
|
|
|
from nio.events.room_events import RoomMessageText
|
|
|
|
from nio.rooms import MatrixRoom
|
|
|
|
|
2023-04-25 11:25:53 +00:00
|
|
|
async def command_ignoreolder(room: MatrixRoom, event: RoomMessageText, bot):
|
|
|
|
body = """Alright, messages before this point will not be processed as context anymore.
|
2023-04-19 06:11:28 +00:00
|
|
|
|
2023-04-25 11:25:53 +00:00
|
|
|
If you ever reconsider, you can simply delete your message and I will start processing messages before it again."""
|
|
|
|
|
|
|
|
await bot.send_message(room, body, True)
|