public async Task MainAsync() { //Check for the database file and create it if it doesn't exist if (!File.Exists("DiscordUrieConfig.db")) { SQLiteConnection.CreateFile("DiscordUrieConfig.db"); } if (!File.Exists("activity.json")) { File.Create("activity.json"); } //Setup database connection var SQLConn = new SQLiteConnection("Data Source=DiscordUrieConfig.db;Version=3;"); var Sett = new DiscordUrieSettings(); await Sett.Createdb(SQLConn); //Load settings from database and create a new instance of the bot with it var DiscordUrie = new DiscordUrie(await Sett.LoadSettings(SQLConn), SQLConn, Sett); //Start. await DiscordUrie.StartAsync(); await Task.Delay(-1); }
public Commands(DiscordUrie du) { discordUrie = du; }
public Tag(DiscordUrie du) { discordUrie = du; }
public ChatBansGroup(DiscordUrie du) { discordUrie = du; }
public Util(DiscordUrie du) { this.discordUrie = du; }
public Settings(DiscordUrie du) { this.discordUrie = du; }
public ColoringStuffGroup(DiscordUrie du) { discordUrie = du; }
public Music(DiscordUrie du) { discordUrie = du; }