Example #1
0
 /// <summary>
 /// This is the entry point from Program.cs. It will make a new instance of this class, and the start the class running.
 /// the 'static' in the name means that is can be called without making an instance. So Startup.RunAsync() instead of
 /// Startup exampme = new Startup(); example.RunAsync()
 /// </summary>
 /// <param name="args"></param>
 /// <returns></returns>
 public static async Task RunAsync(string[] args)
 {
     var startup = new Startup(args); //use the above constructor to make an instance of this class
     await startup.RunAsync();        //then call the below function on this new instance
 }
Example #2
0
 /// <summary>
 /// This file and main function is the first thing the program runs on startup.
 /// It will run the RunAsync function from startup, which will connec to discord server,
 /// initialise the bot and leave it running. Open Startup.cs to see this process.
 /// </summary>
 /// <param name="args"></param>
 /// <returns></returns>
 public static Task Main(string[] args)
 => Startup.RunAsync(args);