Commit Graph

80 Commits

Author SHA1 Message Date
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
Valentin Lorentz
6cbc6a14dd Rename all 'locale' directories to 'locales'.
Firstly, these directories contains more than one locale. Secondly, it conflicts with the 'locale' python module.
2012-12-26 15:43:35 +01:00
Mika Suomalainen
bc9450eead Factoids: improved README
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-09-04 22:50:44 -04: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
Mika Suomalainen
f74c6bf8b9 Factoids: update l10n-fi.
check_trans.py gave errrors, but now it doesn't seem to be giving them anymore.
2012-04-27 14:45:37 +03:00
Mika Suomalainen
83cd0dfc77 Factoids: fix l10n-fi. 2012-04-25 20:07:03 +03:00
Valentin Lorentz
bd6ff971c9 Factoids & Format & Praise: fix l10n-fi and l10n-it. 2012-04-19 21:31:21 +02:00
skizzhg
aedfc07762 Update l10n-it. 2012-03-16 18:28:05 +01: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
skizzhg
7e88bb1ce3 Update l10n-it for many plugins. 2011-08-07 11:16:04 +02:00
skizzhg
e37e292484 Channel & Factoids & Google & MessageParser & MoobotFactoids & Services & Topic & User: Add/update l10n-it. 2011-07-22 01:36:07 +02:00
Mika Suomalainen
435ed3196c Factoids: added ln18n-fi. 2011-07-21 19:19:57 +03:00
Mika Suomalainen
e38d00cfc1 Factoids: 51% completed ln18-fi 2011-07-21 12:43:19 +03:00
Mika Suomalainen
d3788feecb Factoids: updated incompleted Translation. 2011-07-20 16:20:18 +03:00
Mika Suomalainen
020034dd5c Merge remote-tracking branch 'progval/testing' into testing 2011-07-20 10:48:20 +03:00
Mika Suomalainen
1e3bb247c0 Factoids: added partial l18n-fi 2011-07-20 10:48:08 +03:00
Valentin Lorentz
083815c6f7 Factoids: Fix typo. 2011-07-18 15:23:06 +02:00
Mika Suomalainen
225a2fa250 Factoids: Removed games fi.po from translation; Anonymous: updated ln18-fi 2011-07-16 22:26:24 +03:00
Mika Suomalainen
e76c36236b Factoids: improved README 2011-07-08 00:54:12 +03:00
Mika Suomalainen
92b28a1a1c Dict: updated Finnish translation 2011-07-02 12:07:15 +03:00
Valentin Lorentz
49e14f9a92 Conditional & Dict & Factoids & MessageParser: remove redundant spaces, update i18n and l10n-fr 2011-06-28 19:43:21 +02:00
Mika Suomalainen
15d9d0fe6c Factoids: Add finnish translation 2011-06-11 19:05:26 +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
e687061cae Factoids: update l10n-fr 2011-02-26 10:45:42 +01:00
Valentin Lorentz
f7899c7627 Factoids: fix merge 2011-02-26 10:45:29 +01:00
Valentin Lorentz
0d7e3d3759 (Re)generate all plugin's .pot file 2011-02-26 10:40:50 +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
9b516480af add tests for factoids.alias 2011-02-25 18:35:37 +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
b922890b6f add rank test to factoids, update factoids test code to sqlite3 2011-02-24 21:01:19 +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