2023-04-19 06:11:28 +00:00
|
|
|
from nio.events.room_events import RoomMessageText
|
|
|
|
from nio.rooms import MatrixRoom
|
|
|
|
|
2023-04-23 13:26:46 +00:00
|
|
|
|
2023-04-19 06:11:28 +00:00
|
|
|
async def command_help(room: MatrixRoom, event: RoomMessageText, context: dict):
|
2023-04-23 13:26:46 +00:00
|
|
|
return room.guest_accessroom_id, "m.room.message", {"msgtype": "m.notice",
|
|
|
|
"body": """Available commands:
|
2023-04-19 06:11:28 +00:00
|
|
|
|
|
|
|
!gptbot help - Show this message
|
|
|
|
!gptbot newroom <room name> - Create a new room and invite yourself to it
|
|
|
|
!gptbot stats - Show usage statistics for this room
|
|
|
|
!gptbot botinfo - Show information about the bot
|
|
|
|
!gptbot coin - Flip a coin (heads or tails)
|
|
|
|
!gptbot ignoreolder - Ignore messages before this point as context
|
|
|
|
"""}
|