Added Rainbet bet history scraping. Uses FlareSolverr to grab Cloudflare cookies then retrieves from the bet feed. Not perfect but mostly works.

This commit is contained in:
barelyprofessional
2024-08-06 00:07:08 +08:00
parent 508df3163b
commit a67641a14d
12 changed files with 575 additions and 7 deletions

View File

@@ -0,0 +1,18 @@
namespace KfChatDotNetBot.Models.DbModels;
public class RainbetBetsDbModel
{
public int Id { get; set; }
// Weird gibberish identifier given to users, may be hidden on bet feeds for users who opt out of the social shit
// Null if the user has opted out
public string? PublicId { get; set; }
// This is always set. Rainbet never omits the user's ID even if they're anonymous
public required int RainbetUserId { get; set; }
public required string GameName { get; set; }
public required float Value { get; set; }
public required float Payout { get; set; }
public required float Multiplier { get; set; }
public required long BetId { get; set; }
public required DateTimeOffset UpdatedAt { get; set; }
public required DateTimeOffset BetSeenAt { get; set; }
}