예제 #1
0
        static async Task Main(string[] args)
        {
            //Upload earn headlines
            await Headlines.UploadEarnAsync();

            //Activate actual news updating
            NewsUpdateTimer = new TimerCallback(Headlines.UploadAndUpdateNewsAsync);
            Timer newsTimer = new Timer(NewsUpdateTimer, null, 0, 600000);

            //Activate a bot
            CryptoBot = new Bot();
            await CryptoBot.ActivateBotAsync();
        }