static async Task Main() { ValourConfig config = await GetConfig <ValourConfig>(); prod = config.Production; IEnumerable <string> prefixes = config.Prefix; UBIKey = config.JacobUBIKey; ValourSharpConfig valourConfig = new() { Email = config.Email, Password = config.BotPassword, Prefixes = prefixes, Services = Service }; Registration.RegisterCommands(Assembly.GetExecutingAssembly()); OnMessageRecieved += MessageHandler; await Initialize.Start(valourConfig); await Task.Delay(-1); }
private void Form1_Load(object sender, EventArgs e) { //Starts when the Form i Loaded this.Show(); this.Focus(); this.Width = width; this.Height = height; init = new Initialize(this); loop = new Loop(this, init); init.Start(); loop.calculationLoop(); }