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,46 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace KfChatDotNetBot.Migrations
{
/// <inheritdoc />
public partial class Chipsgg : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "ChipsggBets",
columns: table => new
{
Id = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
Created = table.Column<DateTimeOffset>(type: "TEXT", nullable: false),
Updated = table.Column<DateTimeOffset>(type: "TEXT", nullable: false),
UserId = table.Column<string>(type: "TEXT", nullable: false),
Username = table.Column<string>(type: "TEXT", nullable: false),
Win = table.Column<bool>(type: "INTEGER", nullable: false),
Winnings = table.Column<double>(type: "REAL", nullable: false),
GameTitle = table.Column<string>(type: "TEXT", nullable: false),
Amount = table.Column<double>(type: "REAL", nullable: false),
Multiplier = table.Column<float>(type: "REAL", nullable: false),
Currency = table.Column<string>(type: "TEXT", nullable: false),
CurrencyPrice = table.Column<float>(type: "REAL", nullable: false),
BetId = table.Column<string>(type: "TEXT", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_ChipsggBets", x => x.Id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "ChipsggBets");
}
}
}