mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 12:32:03 -04:00
Added a command to tweak the live stream status for relaying off-screen gambling
This commit is contained in:
@@ -124,3 +124,20 @@ public class GmKasinoListCommand : ICommand
|
|||||||
botInstance.SendChatMessage(result, true);
|
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