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,6 +27,7 @@ public class PlinkoCommand : ICommand
|
||||
MaxInvocations = 2,
|
||||
Window = TimeSpan.FromSeconds(10)
|
||||
};
|
||||
public bool WhisperCanInvoke => false;
|
||||
|
||||
private const string NULLSPACE = "⚫";
|
||||
private const string EMPTYSPACE = "⚪";
|
||||
@@ -65,7 +66,7 @@ public class PlinkoCommand : ICommand
|
||||
|
||||
private static Dictionary<int, List<int>> validColumnsForRow = new();
|
||||
|
||||
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)
|
||||
{
|
||||
VACUUM += 1 - (double)HOUSE_EDGE;
|
||||
|
||||
Reference in New Issue
Block a user