Exemplo n.º 1
0
        static void Main(string[] args)
        {
            int code;

            while (true)
            {
                YahurrBot bot = new YahurrBot();
                code = (int)bot.StartAsync().GetAwaiter().GetResult();

                if (code != 2)
                {
                    break;
                }
            }

            Console.WriteLine("Program exited with code: " + code);
        }
Exemplo n.º 2
0
 internal void LoadModule(DiscordSocketClient client, YahurrBot bot, object config)
 {
     this.Client = client;
     this.Bot    = bot;
     this.Config = config;
 }