Changeset 1108:39439c2c8d59 for doc
Legend:
- Unmodified
- Added
- Removed
-
doc/RSS
r1102 r1108 5 5 __copyright__ = 'this file is in the public domain' 6 6 7 # first check if you have RSS permission 7 first check if you have RSS permission 8 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 9 :: 8 10 9 11 <dunk> !perms 10 12 <gozerbot> you have permissions = USER .. OPER 11 13 12 # if this is not the case add it 14 if this is not the case add it 15 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 16 :: 13 17 14 18 <dunk> !setperms dunk rss 15 19 <gozerbot> ok 16 20 17 # see which rss commands the bot has with 21 see which rss commands the bot has with 22 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 23 :: 18 24 19 25 <dunk> !apro rss … … 24 30 rss-additemslist 25 31 26 # you will want to add a url to the RSS system, we use slashdot as an example 32 you will want to add a url to the RSS system, we use slashdot as an example 33 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 34 :: 27 35 28 36 <dunk> !rss-add slash http://rss.slashdot.org/Slashdot/slashdot 29 37 <gozerbot> ok 30 38 31 # see if the url works 39 see if the url works 40 ~~~~~~~~~~~~~~~~~~~~ 41 :: 32 42 33 43 <dunk> !rss-get slash … … 39 49 Subpoenas 40 50 41 # to let the bot check for updates 51 to let the bot check for updates 52 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 53 :: 42 54 43 55 <dunk> !rss-watch slash 44 56 <gozerbot> watcher thread started 45 57 46 # see if the thread is running 58 see if the thread is running 59 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 60 :: 47 61 48 62 <dunk> !rss-running 49 63 <gozerbot> 1) slash ['#dunkbots'] 50 64 51 # if you want to stop watching 65 if you want to stop watching 66 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 67 :: 52 68 53 69 <dunk> !rss-stopwatch slash 54 70 <gozerbot> ok 55 71 56 # see what other data the rss feed has to offer 72 see what other data the rss feed has to offer 73 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 74 :: 57 75 58 76 <dunk> !rss-scan slash … … 63 81 this counts the number of times a certain tag is found in the feed. 64 82 65 # so if we also want for example the link field added, you can add that item to the itemslist 83 so if we also want for example the link field added 84 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 85 you can add that item to the itemslist:: 66 86 67 87 <dunk> !rss-additemslist slash link 68 88 <gozerbot> ok 69 89 70 # check 90 check:: 71 91 72 92 <dunk> !rss-get slash … … 81 101 to remove use rss-delitemslist. 82 102 83 # poll time 103 poll time 104 ~~~~~~~~~ 84 105 85 106 the bot will default poll once every 30 min. if you want the bot to poll
