Skip to content

Commit

Permalink
fix: fix albert_mode command
Browse files Browse the repository at this point in the history
  • Loading branch information
bolinocroustibat committed May 24, 2024
1 parent 6016789 commit 0441ff3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# TODO/IMPROVE:
# - if albert-bot is invited in a salon, make it answer only when if it is tagged.
# - !models: show available models.
# - !model {model_name}: change model used.
# - show sources of a mesage for some given reactions of an answer.
# - !info: show the chat setting (model, with_history).

Expand Down
2 changes: 1 addition & 1 deletion app/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ async def albert_mode(ep: EventParser, matrix_client: MatrixClient):
reset_message = "La commande !mode nécessite un argument. Se référer à !help."
else:
mode = commands[1]
config.albert_api_mode = mode
config.albert_mode = mode
reset_message = "Le mode a été modifié."
await matrix_client.send_text_message(ep.room.room_id, reset_message)

Expand Down

0 comments on commit 0441ff3

Please sign in to comment.