Uploading
This commit is contained in:
parent
c0760b7c1f
commit
0d533a63c9
Binary file not shown.
@ -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)
|
||||
|
||||
@ -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
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user