Skip to content

Supybot Website

Sections
Personal tools
You are here: Home » Supybot Discussion Forums » Developer Forum » Factoid plugin patches

 • Factoid plugin patches

Document Actions
Replies: 2   Views: 1010
Up one level
You need to be a registered member to post to this forum. Register now.

 • Factoid plugin patches

Posted by slacker_nl at 18:30 May 07, 2008
Hello all,

i've made the limit for the random and the regular factoids "dynamic", the bot owner can set a limit via the configuration file. Any positive integer sets the limit.


00:15 <slacker> !whoops
00:15 <digiweed> slacker: "whoops" is (#1) stoer, or (#2) bashlover^2, or (#3) a brainfuck lover, or (#4) spellingsnazi,
or (#5) azijnpisser, or (#6) netwerkgod, or (#7) baab-o-holic, or (#8) baabt alleen binnen, or (#9) a
mistake, or (#10) wzig, or (#11) pingpongbal, or (#12) man whoops, or (#13) 28, or (#14) typo, or (#15)
loser, or (#16) ping, or (#17) traag, or (#18) casanova, or (#19) lesbian lover, or (#20) Big bad
botmaster
00:15 <slacker> !config supybot.plugins.Factoids.factoidMax
00:15 <digiweed> slacker: 20
00:16 <slacker> !config supybot.plugins.Factoids.factoidMax 0
00:16 <slacker> !whoops
00:16 <digiweed> slacker: The operation succeeded.
00:16 <digiweed> slacker: "whoops" is (#1) stoer, or (#2) bashlover^2, or (#3) a brainfuck lover, or (#4) spellingsnazi,
or (#5) azijnpisser, or (#6) netwerkgod, or (#7) baab-o-holic, or (#8) baabt alleen binnen, or (#9) a
mistake, or (#10) wzig, or (#11) pingpongbal, or (#12) man whoops, or (#13) 28, or (#14) typo, or (#15)
loser, or (#16) ping, or (#17) traag, or (#18) casanova, or (#19) lesbian lover, or (#20) Big bad (2 more
messages)
00:16 <slacker> !more

00:16 <slacker> !config supybot.plugins.Factoids.factoidMax 10
00:16 <digiweed> slacker: The operation succeeded.
00:16 <slacker> !whoops
00:16 <digiweed> slacker: "whoops" is (#1) stoer, or (#2) bashlover^2, or (#3) a brainfuck lover, or (#4) spellingsnazi,
or (#5) azijnpisser, or (#6) netwerkgod, or (#7) baab-o-holic, or (#8) baabt alleen binnen, or (#9) a
mistake, or (#10) wzig


The patch files:
* http://www.euronet.nl/users/wesleys/supybot/config.py.patch
* http://www.euronet.nl/users/wesleys/supybot/plugin.py.patch

I've made the patch against:
The current (running) version of this Supybot is 0.83.1+darcs. The newest version available online is 0.83.3.
Member
Posts: 9

 • Re: Factoid plugin patches

Posted by slacker_nl at 06:16 May 26, 2008
Member
Posts: 9

 • Re: Factoid plugin patches

Posted by slacker_nl at 10:46 May 28, 2008
And two more patches for the factoid plugin:

http://www.euronet.nl/users/wesleys/supybot/Factoids.patch02
http://www.euronet.nl/users/wesleys/supybot/Factoids.patch02a

If you want to apply these patches:

First apply 01, then 02 and finally 02a

These patches implement some code changes, mainly in getFactoid and _replyFactoid.
Member
Posts: 9

 

Powered by Plone

This site conforms to the following standards: