mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Attempt to try and fix Chips.gg bet stream by moving to UUIDs. Didn't work though, still needs more work to fix
This commit is contained in:
@@ -322,7 +322,7 @@ public class BotServices
|
|||||||
GameName = bet.Game.Name,
|
GameName = bet.Game.Name,
|
||||||
Value = bet.Value,
|
Value = bet.Value,
|
||||||
Payout = bet.Payout,
|
Payout = bet.Payout,
|
||||||
Multiplier = bet.Multiplier,
|
Multiplier = bet.Multiplier ?? 0,
|
||||||
BetId = bet.Id,
|
BetId = bet.Id,
|
||||||
UpdatedAt = bet.UpdatedAt,
|
UpdatedAt = bet.UpdatedAt,
|
||||||
BetSeenAt = DateTimeOffset.UtcNow
|
BetSeenAt = DateTimeOffset.UtcNow
|
||||||
@@ -576,11 +576,11 @@ public class BotServices
|
|||||||
{
|
{
|
||||||
var settings = Helpers
|
var settings = Helpers
|
||||||
.GetMultipleValues([
|
.GetMultipleValues([
|
||||||
BuiltIn.Keys.ChipsggBmjUsername, BuiltIn.Keys.TwitchBossmanJackUsername,
|
BuiltIn.Keys.ChipsggBmjUserIds, BuiltIn.Keys.TwitchBossmanJackUsername,
|
||||||
BuiltIn.Keys.KiwiFarmsGreenColor, BuiltIn.Keys.KiwiFarmsRedColor
|
BuiltIn.Keys.KiwiFarmsGreenColor, BuiltIn.Keys.KiwiFarmsRedColor
|
||||||
]).Result;
|
]).Result;
|
||||||
_logger.Trace("Chips.gg bet has arrived");
|
_logger.Trace("Chips.gg bet has arrived");
|
||||||
if (bet.Username != settings[BuiltIn.Keys.ChipsggBmjUsername].Value)
|
if (!settings[BuiltIn.Keys.ChipsggBmjUserIds].ToList().Contains(bet.UserId))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -622,7 +622,7 @@ public class BotServices
|
|||||||
var payoutColor = settings[BuiltIn.Keys.KiwiFarmsGreenColor].Value;
|
var payoutColor = settings[BuiltIn.Keys.KiwiFarmsGreenColor].Value;
|
||||||
if (bet.Winnings < bet.Amount) payoutColor = settings[BuiltIn.Keys.KiwiFarmsRedColor].Value;
|
if (bet.Winnings < bet.Amount) payoutColor = settings[BuiltIn.Keys.KiwiFarmsRedColor].Value;
|
||||||
_chatBot.SendChatMessage(
|
_chatBot.SendChatMessage(
|
||||||
$"🚨🚨 CHIPS BROS 🚨🚨 {bet.Username} just bet [plain]{bet.Amount:N} {bet.Currency!.ToUpper()} " +
|
$"🚨🚨 CHIPS BROS 🚨🚨 Bossman just bet [plain]{bet.Amount:N} {bet.Currency!.ToUpper()} " +
|
||||||
$"({bet.Amount * bet.CurrencyPrice:C}) which paid out [/plain][color={payoutColor}][plain]{bet.Winnings:N} {bet.Currency.ToUpper()} " +
|
$"({bet.Amount * bet.CurrencyPrice:C}) which paid out [/plain][color={payoutColor}][plain]{bet.Winnings:N} {bet.Currency.ToUpper()} " +
|
||||||
$"({bet.Winnings * bet.CurrencyPrice:C})[/plain][/color] [plain]({bet.Multiplier:N}x) on {bet.GameTitle}[/plain] 💰💰",
|
$"({bet.Winnings * bet.CurrencyPrice:C})[/plain][/color] [plain]({bet.Multiplier:N}x) on {bet.GameTitle}[/plain] 💰💰",
|
||||||
true);
|
true);
|
||||||
|
|||||||
@@ -405,10 +405,11 @@ public static class BuiltIn
|
|||||||
},
|
},
|
||||||
new BuiltInSettingsModel
|
new BuiltInSettingsModel
|
||||||
{
|
{
|
||||||
Key = Keys.ChipsggBmjUsername,
|
Key = Keys.ChipsggBmjUserIds,
|
||||||
Regex = ".+",
|
Regex = ".+",
|
||||||
Description = "Bossman's Chips.gg username",
|
Description = "Bossman's Chips.gg username",
|
||||||
Default = "TheBossmanJack",
|
//Default = "[\"TheBossmanJack\", \"Yabuddy757\"]",
|
||||||
|
Default = "[\"1af247cd-67e0-4029-8a93-b8d19c275072\", \"e97ebf3e-d5a8-4583-ab35-5095a05f282e\"]",
|
||||||
IsSecret = false,
|
IsSecret = false,
|
||||||
CacheDuration = TimeSpan.FromHours(1)
|
CacheDuration = TimeSpan.FromHours(1)
|
||||||
},
|
},
|
||||||
@@ -544,7 +545,7 @@ public static class BuiltIn
|
|||||||
public static string RainbetBmjPublicId = "Rainbet.BmjPublicId";
|
public static string RainbetBmjPublicId = "Rainbet.BmjPublicId";
|
||||||
public static string FlareSolverrApiUrl = "FlareSolverr.ApiUrl";
|
public static string FlareSolverrApiUrl = "FlareSolverr.ApiUrl";
|
||||||
public static string FlareSolverrProxy = "FlareSolverr.Proxy";
|
public static string FlareSolverrProxy = "FlareSolverr.Proxy";
|
||||||
public static string ChipsggBmjUsername = "Chipsgg.BmjUsername";
|
public static string ChipsggBmjUserIds = "Chipsgg.BmjUserIds";
|
||||||
public static string RestreamUrl = "RestreamUrl";
|
public static string RestreamUrl = "RestreamUrl";
|
||||||
public static string KiwiFarmsCookies = "KiwiFarms.Cookies";
|
public static string KiwiFarmsCookies = "KiwiFarms.Cookies";
|
||||||
public static string BotGmKasinoImageRotation = "Bot.GmKasinoImageRotation";
|
public static string BotGmKasinoImageRotation = "Bot.GmKasinoImageRotation";
|
||||||
|
|||||||
Reference in New Issue
Block a user