Added Chips.gg integration. It basically works but needs more testing and also smashes the DB with how fast their feed updates.

This commit is contained in:
barelyprofessional
2024-08-17 21:58:10 +08:00
parent d2f0519414
commit b390368713
9 changed files with 819 additions and 2 deletions

View File

@@ -0,0 +1,28 @@
namespace KfChatDotNetBot.Models;
public class ChipsggBetModel
{
public DateTimeOffset Created { get; set; }
// Can actually get the duration of a game from this
public DateTimeOffset Updated { get; set; }
public string UserId { get; set; }
// Sometimes null for no discernible reason
public string? Username { get; set; }
// Win of any amount even if it's less than a 1x multi
public bool Win { get; set; }
public double Winnings { get; set; }
public string? GameTitle { get; set; }
public double Amount { get; set; }
public float Multiplier { get; set; }
public string? Currency { get; set; }
public float CurrencyPrice { get; set; }
public string BetId { get; set; }
}
public class ChipsggCurrencyModel
{
public required string Name { get; set; }
public required int Decimals { get; set; }
public float? Price { get; set; }
public required bool Hidden { get; set; }
}

View File

@@ -0,0 +1,18 @@
namespace KfChatDotNetBot.Models.DbModels;
public class ChipsggBetDbModel
{
public int Id { get; set; }
public required DateTimeOffset Created { get; set; }
public required DateTimeOffset Updated { get; set; }
public required string UserId { get; set; }
public required string Username { get; set; }
public required bool Win { get; set; }
public required double Winnings { get; set; }
public required string GameTitle { get; set; }
public required double Amount { get; set; }
public required float Multiplier { get; set; }
public required string Currency { get; set; }
public required float CurrencyPrice { get; set; }
public required string BetId { get; set; }
}