matrix-gptbot/commands/unknown.py
Kumi 1dc0378853
Create a bot class
Make everything compatible with that
2023-04-25 11:25:53 +00:00

8 lines
No EOL
279 B
Python

from nio.events.room_events import RoomMessageText
from nio.rooms import MatrixRoom
async def command_unknown(room: MatrixRoom, event: RoomMessageText, context: dict):
bot.logger.log("Unknown command")
bot.send_message(room, "Unknown command - try !gptbot help", True)