Example #1
0
        private void cmd_funnyGif()
        {
            var WP = new Apis.WebParser();

            string img = WP.GetGeneratedHTML("http://www.funcage.com/gif/", "/photos/", "\"");

            string url = "http://www.funcage.com/gif/photos/" + img;

            Bot.Say(url);
        }
Example #2
0
        private void cmd_poem()
        {
            var WP = new Apis.WebParser();

            string poem = WP.GetGeneratedHTML("http://www.runosydan.net/random.php", "<P class=poem>");

            poem = poem.Substring(0, poem.IndexOf("<P"));

            poem = poem.Replace("<BR>", " ");

            Bot.Say(poem);
        }