BettingArbitrageBot/Arbitrage/Program.cs

16 lines
670 B
C#
Raw Normal View History

2022-12-07 12:48:00 +11:00
using Arbitrage;
using Newtonsoft.Json;
using System.Reflection;
BaseDataService dataService = new BaseDataService();
ConsoleNotificationChannel consoleNotificationChannel = new ConsoleNotificationChannel();
DiscordNotificationChannel discordNotificationChannel = new DiscordNotificationChannel();
await discordNotificationChannel.InitialiseAsync();
Engine engine = new Engine(dataService, new List<INotificationChannel>() { consoleNotificationChannel, discordNotificationChannel });
while (true)
{
await engine.RunAsync(new List<Sport>() { Sport.AFL, Sport.Baseball, Sport.Soccer, Sport.Boxing, Sport.TableTennis, Sport.Cricket });
Thread.Sleep(900000);
}