diff --git a/ChaosBot/ChaosBotSQL.db b/ChaosBot/ChaosBotSQL.db index 314a8dd..387a4ce 100644 Binary files a/ChaosBot/ChaosBotSQL.db and b/ChaosBot/ChaosBotSQL.db differ diff --git a/ChaosBot/Controllers/DBWork.cs b/ChaosBot/Controllers/DBWork.cs index e8ce6fb..3c5ab73 100644 --- a/ChaosBot/Controllers/DBWork.cs +++ b/ChaosBot/Controllers/DBWork.cs @@ -8,7 +8,7 @@ namespace ChaosBot.Controllers { public class DBWork { - private static SqliteConnection _conn = new SqliteConnection($"Data Source={System.IO.Directory.GetCurrentDirectory()}{Program.Cfg.GetValue("Bot:Database")}"); + private static SqliteConnection _conn = new SqliteConnection($"Data Source={System.IO.Directory.GetCurrentDirectory()}/{Program.Cfg.GetValue("Bot:Database")}"); private static Logger _logger = Program._logger; public static DataTable RawQuery(string query) diff --git a/ChaosBot/Discord/Modules/InfoCommands.cs b/ChaosBot/Discord/Modules/InfoCommands.cs index b0ea6c9..81ea479 100644 --- a/ChaosBot/Discord/Modules/InfoCommands.cs +++ b/ChaosBot/Discord/Modules/InfoCommands.cs @@ -31,10 +31,8 @@ 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($""); + sb.AppendLine($"{DBWork.RawQuery("select * from RaffleTable").Rows[0]["userId"]}"); - DataTable dr = DBWork.RawQuery("Show Create Table RaffleTable;"); - /* * Add the string to the Embed */