help.py 658 B

123456789101112131415
  1. from nio.events.room_events import RoomMessageText
  2. from nio.rooms import MatrixRoom
  3. async def command_help(room: MatrixRoom, event: RoomMessageText, context: dict):
  4. return room.guest_accessroom_id, "m.room.message", {"msgtype": "m.notice",
  5. "body": """Available commands:
  6. !gptbot help - Show this message
  7. !gptbot newroom <room name> - Create a new room and invite yourself to it
  8. !gptbot stats - Show usage statistics for this room
  9. !gptbot botinfo - Show information about the bot
  10. !gptbot coin - Flip a coin (heads or tails)
  11. !gptbot ignoreolder - Ignore messages before this point as context
  12. """}