Uploading

This commit is contained in:
Sean "Solao Bajiuik" Stoves 2020-06-03 17:31:56 -04:00
parent c0760b7c1f
commit 0d533a63c9
3 changed files with 2 additions and 4 deletions

Binary file not shown.

View File

@ -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<string>("Bot:Database")}");
private static SqliteConnection _conn = new SqliteConnection($"Data Source={System.IO.Directory.GetCurrentDirectory()}/{Program.Cfg.GetValue<string>("Bot:Database")}");
private static Logger _logger = Program._logger;
public static DataTable RawQuery(string query)

View File

@ -31,10 +31,8 @@ namespace ChaosBot.Discord.Modules
sb.AppendLine();
sb.AppendLine($"Bot Version: {Program.Cfg.GetValue<string>("Bot:Version")}");
sb.AppendLine($"Bot Prefix: {Program.Cfg.GetValue<string>("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
*/