Add chat command to toggle automation.

This commit is contained in:
Ottermandias 2025-08-11 19:59:20 +02:00
parent 26862ba78f
commit dc431c10a5

View file

@ -96,6 +96,12 @@ public class CommandService : IDisposable, IApiService
_config.Ephemeral.LockMainWindow = !_config.Ephemeral.LockMainWindow; _config.Ephemeral.LockMainWindow = !_config.Ephemeral.LockMainWindow;
_config.Ephemeral.Save(); _config.Ephemeral.Save();
return; return;
case "automation":
var newValue = !_config.EnableAutoDesigns;
_config.EnableAutoDesigns = newValue;
_autoDesignApplier.OnEnableAutoDesignsChanged(newValue);
_config.Save();
return;
default: default:
_chat.Print("Use without argument to toggle the main window."); _chat.Print("Use without argument to toggle the main window.");
_chat.Print(new SeStringBuilder().AddText("Use ").AddPurple("/glamour").AddText(" instead of ").AddRed("/glamourer") _chat.Print(new SeStringBuilder().AddText("Use ").AddPurple("/glamour").AddText(" instead of ").AddRed("/glamourer")