Kumi
bf23771989
New "imagine" and "calculate" commands Implemented image sending Moved OpenAI specific code to OpenAI class Abstracted away OpenAI API in bot class Minor fixes
8 lines
No EOL
275 B
Python
8 lines
No EOL
275 B
Python
from nio.events.room_events import RoomMessageText
|
|
from nio.rooms import MatrixRoom
|
|
|
|
|
|
async def command_unknown(room: MatrixRoom, event: RoomMessageText, bot):
|
|
bot.logger.log("Unknown command")
|
|
|
|
await bot.send_message(room, "Unknown command - try !gptbot help", True) |