Added giveaway commands .ga start/end/cancel/reroll/list

This commit is contained in:
Kwoth
2024-04-24 22:31:45 +00:00
parent 59b9742c19
commit 49563ea6d4
16 changed files with 247 additions and 57 deletions

View File

@@ -12,7 +12,7 @@ using Nadeko.Bot.Db;
namespace NadekoBot.Db.Migrations.Mysql
{
[DbContext(typeof(MysqlContext))]
[Migration("20240424152958_giveaway")]
[Migration("20240424203922_giveaway")]
partial class giveaway
{
/// <inheritdoc />
@@ -3085,6 +3085,10 @@ namespace NadekoBot.Db.Migrations.Mysql
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
b.Property<ulong>("ChannelId")
.HasColumnType("bigint unsigned")
.HasColumnName("channelid");
b.Property<DateTime>("EndsAt")
.HasColumnType("datetime(6)")
.HasColumnName("endsat");

View File

@@ -20,6 +20,7 @@ namespace NadekoBot.Db.Migrations.Mysql
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
guildid = table.Column<ulong>(type: "bigint unsigned", nullable: false),
messageid = table.Column<ulong>(type: "bigint unsigned", nullable: false),
channelid = table.Column<ulong>(type: "bigint unsigned", nullable: false),
message = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
endsat = table.Column<DateTime>(type: "datetime(6)", nullable: false)

View File

@@ -3082,6 +3082,10 @@ namespace NadekoBot.Db.Migrations.Mysql
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<int>("Id"));
b.Property<ulong>("ChannelId")
.HasColumnType("bigint unsigned")
.HasColumnName("channelid");
b.Property<DateTime>("EndsAt")
.HasColumnType("datetime(6)")
.HasColumnName("endsat");