mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 12:32:03 -04:00
message deletion and krash (#102)
* Update message deletion in BlackjackCommand Refactor message deletion logic for non-whisper messages. * Add message deletion for non-whisper coinflip * Implement message deletion for non-whispers Added a check to delete non-whisper messages if they have a MessageUuid. * Delete non-whisper messages in KenoCommand * Implement KrashBetCommand for betting functionality * Lambchop message deletion Lambchop message deletion * limbo message deletion limbo message deletion * Delete message if not a whisper mines Delete message if not a whisper mines * planes message dleete planes message dleete * plinko message delete plinko message delete * Add message deletion for non-whisper messages roulette Delete the message if it's not a whisper and has a UUID. * add message deletion for non-whisper slots add message deletion for non-whisper slots * Implement message deletion for WheelCommand Add message deletion for non-whisper messages. * Add KasinoKrash service initialization * Add KasinoKrash service for game management Implement KasinoKrash service for managing the Krash game, including state management, betting, and payout logic. * Update message formatting in KasinoMines.cs add buttons * Update MinesCommand.cs allow more mines spam since message will be deleted anyways, spam will be supported via button
This commit is contained in:
@@ -42,6 +42,7 @@ public class BotServices
|
||||
private YouTubePubSub? _youTubePubSub;
|
||||
public KasinoRain? KasinoRain;
|
||||
public KasinoShop? KasinoShop;
|
||||
public KasinoKrash? KasinoKrash;
|
||||
|
||||
private Task? _websocketWatchdog;
|
||||
private Task? _howlggGetUserTimer;
|
||||
@@ -95,7 +96,8 @@ public class BotServices
|
||||
BuildShuffleDotUs(),
|
||||
BuildYouTubePubSub(),
|
||||
BuildKasinoRain(),
|
||||
BuildKasinoShop()
|
||||
BuildKasinoShop(),
|
||||
BuildKasinoKrash()
|
||||
];
|
||||
try
|
||||
{
|
||||
@@ -112,6 +114,12 @@ public class BotServices
|
||||
_howlggGetUserTimer = HowlggGetUserTimer();
|
||||
}
|
||||
|
||||
private async Task BuildKasinoKrash()
|
||||
{
|
||||
_logger.Debug("Building the Kasino Krash thingy");
|
||||
KasinoKrash = new KasinoKrash(_chatBot, _cancellationToken);
|
||||
}
|
||||
|
||||
private async Task BuildKasinoRain()
|
||||
{
|
||||
_logger.Debug("Building the Kasino Rain thingy");
|
||||
|
||||
Reference in New Issue
Block a user