Exemple #1
0
        private void DiceBot_OnSiteDiceBetFinished(object sender, DoormatCore.Sites.BetFinisedEventArgs e)
        {
            if (DiceBot.Running)
            {
                bets.Add(e.NewBet as DiceBet);
                while (bets.Count > Console.WindowHeight - 10 && bets.Count > 0)
                {
                    bets.RemoveAt(0);
                }
                //Console.Clear();
                PrintBasicStats();
                PrintDiceHeaders();
                PrintDiceBets();
                PrintPrmpt();
                PrintInput();
            }

            /*Console.WriteLine(DoormatCore.Helpers.json.JsonSerializer<DiceBet>(e.NewBet as DiceBet));
             * if (DiceBot.Stats.Bets % 100 == 0)
             * {
             *  Console.WriteLine("\r\n\r\n");
             *  Console.WriteLine(DoormatCore.Helpers.json.JsonSerializer<SessionStats>(DiceBot.Stats));
             *  Console.WriteLine("\r\n\r\n");
             * }*/
        }
Exemple #2
0
 private void Instance_OnSiteDiceBetFinished(object sender, DoormatCore.Sites.BetFinisedEventArgs e)
 {
     Callbacks["OnSiteDiceBetFinished"](e);
 }