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()); } }
public static void PlayAudio(List <string> list) { Random rand = new Random(); BotEnvironment.PlayAudio(list[rand.Next(list.Count - 1)]); }