diff --git a/KfChatDotNetBot/Commands/AdminCommands.cs b/KfChatDotNetBot/Commands/AdminCommands.cs index 500aaaf..ddb8f41 100644 --- a/KfChatDotNetBot/Commands/AdminCommands.cs +++ b/KfChatDotNetBot/Commands/AdminCommands.cs @@ -123,4 +123,21 @@ public class GmKasinoListCommand : ICommand botInstance.SendChatMessage(result, true); } +} + +public class ToggleLiveStatusCommand : ICommand +{ + public List Patterns => [ + new Regex(@"^admin toggle livestatus$") + ]; + + public string? HelpText => "Toggle Bossman's live status so off screen gamba can be relayed"; + public UserRight RequiredRight => UserRight.TrueAndHonest; + public TimeSpan Timeout => TimeSpan.FromSeconds(10); + public async Task RunCommand(ChatBot botInstance, MessageModel message, UserDbModel user, GroupCollection arguments, CancellationToken ctx) + { + botInstance.BotServices.IsBmjLive = !botInstance.BotServices.IsBmjLive; + + botInstance.SendChatMessage($"IsBmjLive => {botInstance.BotServices.IsBmjLive}", true); + } } \ No newline at end of file