[pybot-commits] CVS: pybot/pybot/modules freshmeat.py,1.3,1.4
Brought to you by:
niemeyer
From: Gustavo N. <nie...@us...> - 2002-04-03 23:32:09
|
Update of /cvsroot/pybot/pybot/pybot/modules In directory usw-pr-cvs1:/tmp/cvs-serv12775 Modified Files: freshmeat.py Log Message: Oops. Target is not necessary. Changed comments and help. Index: freshmeat.py =================================================================== RCS file: /cvsroot/pybot/pybot/pybot/modules/freshmeat.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** freshmeat.py 3 Apr 2002 23:25:38 -0000 1.3 --- freshmeat.py 3 Apr 2002 23:32:06 -0000 1.4 *************** *** 26,36 **** ("""\ You may tell me which channels/users I have to notify of freshmeat news \ ! with "[don't] show freshmeat news (on|to) [channel|user] <target> [on \ ! server <server>]".\ """,)] URL = "http://freshmeat.net/backend/recentnews.txt" PROXY = None ! # PROXY = {"http":"http://proxy.conectiva.com.br:3128"} FETCHINTERVAL = 10 --- 26,36 ---- ("""\ You may tell me which channels/users I have to notify of freshmeat news \ ! with "[don't] show freshmeat news [(on|to) [channel|user] <target> [on \ ! server <server>]]".\ """,)] URL = "http://freshmeat.net/backend/recentnews.txt" PROXY = None ! # PROXY = {"http":"http://proxy.url.com:3128"} FETCHINTERVAL = 10 *************** *** 44,48 **** mm.hooktimer(0, FETCHINTERVAL*60, self.checknews, ()) ! # Match '[don[']t|do not] show freshmeat news (to|on|at|for) [channel|user] <target> [[on|at] server <server>] [!|.]' self.re1 = re.compile(r"(?P<dont>don'?t\s+|do\s+not\s+)?show\s+freshmeat\s+news(?:\s+(?:to|on|at|for)(?:\s+channel|\s+user)?\s+(?P<target>\S+)(?:(?:\s+on|\s+at)?\s+server\s+(?P<server>\S+?))?)?\s*[!.]*$", re.I) --- 44,48 ---- mm.hooktimer(0, FETCHINTERVAL*60, self.checknews, ()) ! # Match '[don[']t|do not] show freshmeat news [(to|on|at|for) [channel|user] <target> [[on|at] server <server>]] [!|.]' self.re1 = re.compile(r"(?P<dont>don'?t\s+|do\s+not\s+)?show\s+freshmeat\s+news(?:\s+(?:to|on|at|for)(?:\s+channel|\s+user)?\s+(?P<target>\S+)(?:(?:\s+on|\s+at)?\s+server\s+(?P<server>\S+?))?)?\s*[!.]*$", re.I) |