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:
barelyprofessional
2026-03-18 23:50:32 -05:00
parent 4cdb04e3c5
commit 01a4b26326
44 changed files with 683 additions and 148 deletions

View File

@@ -27,6 +27,7 @@ public class Planes : ICommand
MaxInvocations = 3,
Window = TimeSpan.FromSeconds(30)
};
public bool WhisperCanInvoke => false;
private const string Boost = "💨";
private const string PlaneUp = "🛫";
@@ -42,7 +43,7 @@ public class Planes : ICommand
private bool _riggedWin = false;
private const int CarrierCount = 6;
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)
{
var settings = await SettingsProvider.GetMultipleValuesAsync([