Beispiel #1
0
        static void Main(string[] args)
        {
            Console.Title = "Bot de Fumar";

            try
            {
                BotEnvironment.Initialize();
            }
            catch (Exception ex)
            {
                Logger.LogException($"Não foi possível iniciar o bot: {ex.ToString()}");
            }
            while (true)
            {
                ConsoleCommand.InvokeCommand(Console.ReadLine());
            }
        }
Beispiel #2
0
        public static void PlayAudio(List <string> list)
        {
            Random rand = new Random();

            BotEnvironment.PlayAudio(list[rand.Next(list.Count - 1)]);
        }