newsbot.tgz
snippets · 66.7 KB · 2010-03-30
Newsbot: an RSS reader (Python) that posts news feeds to the MUD, with IMC.
Download « Back to the snippets list
newsbot/README
Do whatever you want with this, it doesn't bother me. Just don't pass it off as your own. I would however appreciate it if you didn't run it on the MUDBytes IMC2 network, as if everyone starts running a NewsBot, it could get quite spammy. Usually if you ask me (Kiasyn@Talon) I'm happy to add whatever site to the feeds. -- Sam O'Connor (Kiasyn) ==INSTALLATION== Compile the files in the src dir and copy the executable (should be named rss) to the bin dir. Run the bin/rssstart script. You're done. ==ADDING NEW FEEDS== You have to manually edit the feeds.dat file and add your own entries. Input / output file is the name of the file it is saved as in the feeds/ dir. They should remain the same unless you have good reason not to. For the <format> tag, see below. Format is: <display name> (no spaces) #FEED <url of rss feed> <input file> <output file> <format> <update interval in minutes> #END at the bottom of the file. ==FORMATTING YOUR FEED== The tags available for formatting your feed are *%*category*%* The category of the post in the RSS feed. *%*title*%* The title of the post *%*author*%* The author of the post (not all feeds have authors!) *%*qsfauthor*%* Unused, legacy purposes only *%*qsfauthorr2*%* Use this to remove email addresses from the author output of QSF feeds *%*url*%* URL of the post Standard format I've used is: [*%*category*%*] *%*title*%* [*%*author*%*] (*%*url*%*)
Archive contents (21 files)
| File | Size |
|---|---|
| newsbot/bin/rssstart | 250 B |
| newsbot/bin/rss.py | 1.3 KB |
| newsbot/feeds.dat | 142 B |
| newsbot/imc/imc.commands | 3.3 KB |
| newsbot/imc/imc.color | 3.3 KB |
| newsbot/imc/imc.ucache | 5 B |
| newsbot/imc/imc.ignores | 18 B |
| newsbot/imc/imc.help | 18.8 KB |
| newsbot/imc/imc.who | 625 B |
| newsbot/imc/imc.channels | 5 B |
| newsbot/imc/imc.config | 964 B |
| newsbot/src/Makefile | 323 B |
| newsbot/src/imc.c | 232.3 KB |
| newsbot/src/imc.h | 14.8 KB |
| newsbot/src/md5.c | 12.5 KB |
| newsbot/src/md5.h | 3.4 KB |
| newsbot/src/imccfg.h | 3.8 KB |
| newsbot/README | 1.4 KB |
| newsbot/LICENSE | 126 B |
| newsbot/DISCLAIMER | 798 B |
| newsbot/imc2freedom.license | 1019 B |