diff --git a/matrix_pygmalion_bot/core.py b/matrix_pygmalion_bot/core.py index 3d1007d..1f672de 100644 --- a/matrix_pygmalion_bot/core.py +++ b/matrix_pygmalion_bot/core.py @@ -155,6 +155,8 @@ class Callbacks(object): else: self.bot.negative_prompt = None return + elif event.body.startswith('!temperature'): + self.bot.temperature = float( event.body.removeprefix('!temperature').strip() elif event.body.startswith('!begin'): self.bot.chat_history.room(room.display_name).clear() self.bot.room_config[room.room_id]["tick"] = 0