Updated the live check to remove the built-in properties and instead use the persisted setting

This commit is contained in:
barelyprofessional
2025-08-21 01:54:12 -05:00
parent bd89fa74e6
commit 69386fce61
3 changed files with 26 additions and 72 deletions

View File

@@ -38,23 +38,6 @@ public class SetRoleCommand : ICommand
}
}
public class ToggleLiveStatusAdminCommand : ICommand
{
public List<Regex> 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;
await botInstance.SendChatMessageAsync($"IsBmjLive => {botInstance.BotServices.IsBmjLive}", true);
}
}
public class CacheClearAdminCommand : ICommand
{
public List<Regex> Patterns => [