Beispiel #1
0
        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);
        }
Beispiel #2
0
 public Commands(DiscordUrie du)
 {
     discordUrie = du;
 }
Beispiel #3
0
 public Tag(DiscordUrie du)
 {
     discordUrie = du;
 }
Beispiel #4
0
 public ChatBansGroup(DiscordUrie du)
 {
     discordUrie = du;
 }
Beispiel #5
0
 public Util(DiscordUrie du)
 {
     this.discordUrie = du;
 }
Beispiel #6
0
 public Settings(DiscordUrie du)
 {
     this.discordUrie = du;
 }
Beispiel #7
0
 public ColoringStuffGroup(DiscordUrie du)
 {
     discordUrie = du;
 }
 public Music(DiscordUrie du)
 {
     discordUrie = du;
 }