BettingArbitrageBot/Arbitrage/Program.cs
Harry Stuart 2f118c5bcb Add code
2022-12-07 12:48:00 +11:00

16 lines
670 B
C#

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);
}