diff --git a/ChaosBot/ChaosBotSQL.db b/ChaosBot/ChaosBotSQL.db deleted file mode 100644 index 387a4ce..0000000 Binary files a/ChaosBot/ChaosBotSQL.db and /dev/null differ diff --git a/ChaosBot/Discord/Modules/InfoCommands.cs b/ChaosBot/Discord/Modules/InfoCommands.cs index 81ea479..ba7fc5e 100644 --- a/ChaosBot/Discord/Modules/InfoCommands.cs +++ b/ChaosBot/Discord/Modules/InfoCommands.cs @@ -31,7 +31,7 @@ namespace ChaosBot.Discord.Modules sb.AppendLine(); sb.AppendLine($"Bot Version: {Program.Cfg.GetValue("Bot:Version")}"); sb.AppendLine($"Bot Prefix: {Program.Cfg.GetValue("Discord:Prefix")}"); - sb.AppendLine($"{DBWork.RawQuery("select * from RaffleTable").Rows[0]["userId"]}"); + sb.AppendLine($"{DBWork.RawQuery("select * from RaffleTable where Id = (abs(random()) % (select (select max(Id) from RaffleTable)+1)) or rowid = (select min(Id) from RaffleTable) order by Id DESC limit 1;").Rows[0]["userId"]}"); /* * Add the string to the Embed diff --git a/ChaosBot/appsettings.json b/ChaosBot/appsettings.json deleted file mode 100644 index 27ccf36..0000000 --- a/ChaosBot/appsettings.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "Bot": { - "Name": "ChaosBot", - "Version": "1.0", - "Database": "ChaosBotSQL.db" - }, - "Discord": { - "Token": "NzE3ODM3Njg5Mzk0ODIzMjYy.XtgIew.JWUjvMDSzQT_a36D98CTrtb5lfI", - "Prefix": "?" - }, - "NLog": { - "extensions": { - "NLog.Web.AspNetCore": { - "assembly": "NLog.Web.AspNetCore" - } - }, - "targets": { - "loggerconsole": { - "type": "console" - } - }, - "rules": [ - { - "logger": "*", - "minLevel": "Trace", - "writeTo": "loggerconsole" - } - ] - } -} \ No newline at end of file