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