Valentin Lorentz
b9a46cef21
Factoids: Fix @lock and @unlock.
2013-05-04 01:01:11 +02:00
Valentin Lorentz
f4c643ad51
Factoids: Add the web interface.
2013-03-11 19:54:17 +01:00
Valentin Lorentz
3dba9088b0
Merge remote-tracking branch 'supybot/master' into testing
...
Conflicts:
INSTALL
plugins/ChannelLogger/README.txt
plugins/ChannelStats/README.txt
plugins/Google/plugin.py
plugins/Google/test.py
plugins/Plugin/test.py
plugins/Web/test.py
setup.py
src/callbacks.py
src/ircdb.py
src/irclib.py
src/utils/str.py
test/test_irclib.py
2013-01-01 21:11:24 +01:00
James McCoy
82ecf36fcd
Update my name/contact information
...
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-09-01 10:16:48 -04:00
Valentin Lorentz
df2d976818
Use utils.str.MultipleReplacer instead of str.maketrans.
2012-08-04 14:04:15 +02:00
James McCoy
9b855beec6
Merge branch 'typos'
2011-10-23 19:41:54 -04:00
Valentin Lorentz
8fb4cbcdc6
Factoids: Fix typo.
...
Conflicts:
plugins/Factoids/locale/fi.po
plugins/Factoids/locale/fr.po
plugins/Factoids/messages.pot
src/version.py
Signed-off-by: James McCoy <vega.james@gmail.com>
2011-10-23 19:30:07 -04:00
Valentin Lorentz
083815c6f7
Factoids: Fix typo.
2011-07-18 15:23:06 +02:00
Valentin Lorentz
49e14f9a92
Conditional & Dict & Factoids & MessageParser: remove redundant spaces, update i18n and l10n-fr
2011-06-28 19:43:21 +02:00
Valentin Lorentz
2791955209
Factoids: fix merge problem (duplicated wrap()-ing). Thanks kini fore the report
2011-04-09 15:24:52 +02:00
Valentin Lorentz
f7899c7627
Factoids: fix merge
2011-02-26 10:45:29 +01:00
Daniel Folkinshteyn
dfeb50de2d
Add --raw option to factoids.whatis, which disables variable substitution on the factoid.
...
also add test for this.
2011-02-25 19:18:50 +01:00
Daniel Folkinshteyn
b12d8a8a04
Use the ircutils.standardSubsitute function upon factoid output.
...
This allows inclusion of the usual standardSubstitute vars within factoids.
There is no config to disable this, since it is possible to escape the substitutions
by simply doubling the dollar signs, as per the python documentation:
http://docs.python.org/library/string.html#template-strings
Thus, if you want a factoid to output a literal "$channel", for example, all
you'd need to do is use "$$channel" in your factoid text, which will come out
as "$channel" when said by the bot.
Also added tests for this new behavior.
2011-02-25 19:18:02 +01:00
Daniel Folkinshteyn
8ed94257ba
some enhancements Factoids.rank:
...
output options: plain key output, and alpha sorting for plain output.
allow an optional argument for how many ranked facts to show.
2011-02-25 19:16:48 +01:00
Daniel Folkinshteyn
d433bfc8f0
for Factoids: make approximate fuzzy key searches also when invoking whatis directly.
...
also add tests.
while there, remove useless config setting for replyinvalidcommand testing, since it is true by default.
2011-02-25 19:13:27 +01:00
Daniel Folkinshteyn
e46948400d
take out getDb override from factoids, since i have changed it upstream, in plugins.__init__.py, to use proper sqlite3 syntax.
2011-02-25 18:54:51 +01:00
Daniel Folkinshteyn
2d718d31bb
Fix factoids bug ,Factoids.showFactoidIfOnlyOneMatch feature is broken when used off-channel:
...
https://sourceforge.net/tracker/?func=detail&aid=2965589&group_id=58965&atid=489447
2011-02-25 18:48:56 +01:00
Daniel Folkinshteyn
b306c5440f
add damerau-levenshtein distance to supybot.utils.seq
...
use it in factoids invalid command to match possible typos
write tests for same.
2011-02-25 18:36:09 +01:00
Daniel Folkinshteyn
50ac5a05e1
delete leftover debug-prints
2011-02-25 18:35:30 +01:00
Daniel Folkinshteyn
366c2b7c17
add factoids alias function, to link more keys to existing factoids.
2011-02-25 18:35:17 +01:00
Daniel Folkinshteyn
436d2bade8
mod factoids plugin to use a separate key-value relationship table
...
this avoids duplication, and allows one to set a bunch of aliases for a factoid, without creating duplicates of the same fact content.
2011-02-25 18:33:40 +01:00
Daniel Folkinshteyn
471921eab6
make 'factoids info' include usage count in output. add test for same.
2011-02-24 21:03:30 +01:00
nanotube
e71ee8fbb1
don't give up too easily with invalid command, instead search factoid keys with wildcard first.
2011-02-24 21:02:39 +01:00
nanotube
5c0596f484
rename factrank to just rank for consistency
2011-02-24 21:01:08 +01:00
Daniel Folkinshteyn
f71464adb3
This merges an old branch i had for sqlite3 factoids+moobotfactoids.
...
fix up moobotfactoids+factoids to use the sqlite text_factory=str,
also fixed up a test for factoid search, since it now sorts keys alphabetically.
2011-02-24 20:55:24 +01:00
Daniel Folkinshteyn
c0ebdddb47
start factoid rankings from 1 not from 0
2011-02-24 20:09:00 +01:00
Daniel Folkinshteyn
34f8557cfd
remove rogue test-print
2011-02-24 20:06:35 +01:00
Daniel Folkinshteyn
7351ec1702
sort keys in factoid search output by alphabetically by key name.
2011-02-24 20:03:28 +01:00
Daniel Folkinshteyn
d2ac0e742a
implement factoid usage counter
2011-02-24 20:03:03 +01:00
Valentin Lorentz
3582286658
Fix Factoids
2011-01-02 09:31:07 +01:00
Valentin Lorentz
d14bb0cc16
Internationalize ChannelLogger, Ctcp, Dict, Dunno, Factoids
2010-10-17 11:22:07 +02:00
James Vega
7869b962d1
Fix the previous Factoids fix.
...
channel needs to be part of the args list.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit fe07ea1146
)
2010-08-24 19:44:56 -04:00
James Vega
b2c45caa66
Factoids: Pass channel to whatis when being called from search
...
Thanks to Daniel Folkinshteyn for the fix.
Closes: Sf#2965589
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit 209facd242
)
2010-08-24 19:44:45 -04:00
James Vega
0933621dab
Factoids: Prevent empty key or value when adding a factoid.
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit 10f5a12b7e
)
2010-08-24 19:43:56 -04:00
James Vega
0bd9a8b6f4
Use the correct URLs for the PySqlite website.
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit 927c8c963a
)
2010-08-24 19:15:27 -04:00
James Vega
dcdbd5bea4
Update references to PySqlite URL
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit f475525237
)
2010-08-24 19:15:17 -04:00
James Vega
fe07ea1146
Fix the previous Factoids fix.
...
channel needs to be part of the args list.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-04-11 11:04:45 -04:00
James Vega
209facd242
Factoids: Pass channel to whatis when being called from search
...
Thanks to Daniel Folkinshteyn for the fix.
Closes: Sf#2965589
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-04-11 10:36:55 -04:00
James Vega
10f5a12b7e
Factoids: Prevent empty key or value when adding a factoid.
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-02-05 18:50:48 -05:00
James Vega
927c8c963a
Use the correct URLs for the PySqlite website.
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-10-21 22:48:04 -04:00
James Vega
f475525237
Update references to PySqlite URL
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-10-21 22:43:26 -04:00
James Vega
4c9efc044b
Replace Factoids.factoidPrefix with Factoids.format
...
Factoids.format makes use of registry.TemplatedString so the user can specify
excactly how they want the factoid reply to be formed.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-10-15 22:37:59 -04:00
James Vega
cca36ed9f2
Factoids: Add simpleSyntax argument to getCommandHelp.
...
It helps to properly override the parent class's method so that Misc.help
doesn't error when trying to get Factoids.learn's help.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-05-18 11:09:18 -04:00
James Vega
0615846ab3
Fix getCommandHelp's use of dynamic.msg
...
Default chan to None so we can still retrieve a config value if dynamic.msg
isn't valid (e.g., when running supybot-plugin-doc).
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-04-28 08:14:46 -04:00
James Vega
4285df0809
Factoids: Fix thinko in getCommandHelp
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-04-23 16:05:31 -04:00
James Vega
d6f6f32219
Factoids: Add an __init__ function which calls our parents' __init__s
...
This ensures that we actually get self.dbCache defined in Factoids
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-04-06 17:30:53 -04:00
James Vega
46a4076988
Add .gitignore
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-02-27 14:17:31 -05:00
James Vega
0bc16641b9
Use the timestamp formatter instead of duplicating the code
2009-03-11 13:37:26 -04:00
James Vega
08a0531bf7
Update Factoids.getCommandHelp to respect supybot.reply.showSimpleSyntax
2009-03-11 13:37:26 -04:00
James Vega
3908e989c5
plugins/Factoids: Dynamically generate the help string using the value of supybot.plugins.Factoids.learnSeparator
2006-08-28 13:14:21 +00:00