mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
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:
28
KfChatDotNetBot/Models/ChipsggModels.cs
Normal file
28
KfChatDotNetBot/Models/ChipsggModels.cs
Normal 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; }
|
||||
}
|
||||
18
KfChatDotNetBot/Models/DbModels/ChipsggBetDbModel.cs
Normal file
18
KfChatDotNetBot/Models/DbModels/ChipsggBetDbModel.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user