mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Added a command to tweak the live stream status for relaying off-screen gambling
This commit is contained in:
@@ -123,4 +123,21 @@ public class GmKasinoListCommand : ICommand
|
||||
|
||||
botInstance.SendChatMessage(result, true);
|
||||
}
|
||||
}
|
||||
|
||||
public class ToggleLiveStatusCommand : 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;
|
||||
|
||||
botInstance.SendChatMessage($"IsBmjLive => {botInstance.BotServices.IsBmjLive}", true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user