ignoreolder.py 528 B

12345678
  1. from nio.events.room_events import RoomMessageText
  2. from nio.rooms import MatrixRoom
  3. async def command_ignoreolder(room: MatrixRoom, event: RoomMessageText, context: dict):
  4. return room.room_id, "m.room.message", {"msgtype": "m.notice",
  5. "body": """Alright, messages before this point will not be processed as context anymore.
  6. If you ever reconsider, you can simply delete your message and I will start processing messages before it again."""}