mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Added support for MOTD and whispers. Commands can opt into responding to whispers and there's a helper method to handle replying through the correct channel.
This commit is contained in:
@@ -27,12 +27,13 @@ public class LimboCommand : ICommand
|
||||
MaxInvocations = 10,
|
||||
Window = TimeSpan.FromSeconds(30)
|
||||
};
|
||||
public bool WhisperCanInvoke => false;
|
||||
|
||||
private const double Min = 1;
|
||||
private const double Max = 10000;
|
||||
private decimal HOUSE_EDGE = (decimal)0.98;
|
||||
|
||||
public async Task RunCommand(ChatBot botInstance, MessageModel message, UserDbModel user, GroupCollection arguments,
|
||||
public async Task RunCommand(ChatBot botInstance, BotCommandMessageModel message, UserDbModel user, GroupCollection arguments,
|
||||
CancellationToken ctx)
|
||||
{
|
||||
decimal limboNumber; //user number
|
||||
|
||||
Reference in New Issue
Block a user