Hack Forums
[C] Pulling from an RSS feed for a Discord bot - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C] Pulling from an RSS feed for a Discord bot (/showthread.php?tid=5631585)



Pulling from an RSS feed for a Discord bot - M O D E R N - May 25, 2017

I am trying to figure out how to make a simple command that will pull from an rss feed.

Writing the bot in C#

I want to pull just the latest from this feed: https://status.coinbase.com/history.rss

So user would type !coinbase and then would spit out the most recent item.

Currently have this for basic sendmessage command:
Code
commands.CreateCommand("coinbase")
                .Do(async (e) =>
                {
                    await e.Channel.SendMessage("Let me grab the status of Coinbase!");
                });



* - 0xDEAD10CC - May 25, 2017

This isn't the C# section. ...


* - M O D E R N - May 25, 2017

(May 25, 2017 12:36 PM)0xDEAD10CC Wrote:  This isn't the C# section. ...

oh whoops, my bad