Reddit IRC Bot Source Code and Implimentation
How to make a bot to run Reddit with a quick and simple of irc bot source code for relaying information from Reddit RSS feeds into IRC channels.
Reddit IRC Bot is achieved through the use of a standard irc engine that powers all our basic command oriented bots, this engine is not suitable for spam. Commands are then passed back to a command parser handler.
Reddit IRC Bot Imgur handling
Some posts have imgur links in them, some subreddits are only useful for the images, so Reddit IRC Bot isolates and displays imgur links differently.
Source code handling imgur and commands
Reddit IRC Bot is feed driven off the subreddit’s RSS
The RSS is handled with a tidy RSS Manager found a while back. Basically using the xml dom a list of rss feed items is generated, I then use a random number generator to randomly select an item in the feed. Setting the index to 0 should give the latest item, but sometimes subreddits aren’t as active as irc users playing with your bot. This code could be upgraded with a different parser to handle improperly formatted schemas quite easily.
RSS 2.0 parsing source code
Feel free to use this info as a basis for writing your own bot, or become a member of SkullwareInc to be able to download a copy of Reddit IRC Bot’s source code!