public async static void Bot_OnMessage(object sender, MessageEventArgs e) { var startup = new Startup(); var botClient = startup.botClient; foreach (var command in _commands.Get()) { if (e.Message.Text.Contains(command.Name)) { await command.Execute(e.Message, botClient); } } botClient.StartReceiving(); }