Daniel Folkinshteyn
3005752c58
fix docstring for Plugin.plugin command so it actually says what the command will do.
...
also add a Plugin.plugins command, which always returns a list of all plugins containing a command.
add a test for it.
2010-04-21 16:38:25 -04:00
Daniel Folkinshteyn
9c5f05ab2d
update quotegrabs to sqlite3
2010-04-21 01:24:13 -04:00
James Vega
5ad620b5fd
Make registry.Regexp.error mimic registry.Value.error
...
Regexp.error can't directly call Value.error because it's providing extra
information, so it needs to build the InvalidRegistryValue exception itself
and raise it.
Closes: Sf#2985241
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit ef8bd817e8
)
Signed-off-by: Daniel Folkinshteyn <nanotube@users.sourceforge.net>
2010-04-19 01:00:02 -04:00
Daniel Folkinshteyn
35fee237da
Undo mtughan's bugfix from 7f9a113060
, so i can merge jamessan's fix ef8bd817e8
2010-04-19 00:53:40 -04:00
Daniel Folkinshteyn
022193b61b
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.
2010-04-18 03:33:10 -04:00
Daniel Folkinshteyn
b5058cc5c2
update Karma plugin and test code to use sqlite3.
...
This involved also updating src/conf.py to look for sqlite3 and add it to supybot.conf.databases list,
since karma uses the plugins.DB() constructor for its database, which checks the available databases list.
2010-04-18 02:10:29 -04:00
Daniel Folkinshteyn
4890e2e80d
for Alias, make doc string say "at least x args" if there are optional args in addition to required args.
...
yay for cosmetic improvements. :)
2010-04-14 10:56:39 -04:00
Daniel Folkinshteyn
aa634e6da1
fix alias bug https://sourceforge.net/tracker/?func=detail&aid=2987147&group_id=58965&atid=489447
...
add tests for appropriate behavior
2010-04-14 10:27:56 -04:00
Daniel Folkinshteyn
5e162a28f7
make google translate return detailed google error, instead of the unhelpful "we broke google".
2010-04-11 18:27:39 -04:00
Daniel Folkinshteyn
127b3cfabd
for google translate, error if destination language is 'auto'.
2010-04-11 17:37:09 -04:00
Daniel Folkinshteyn
34d91284a5
in Later nick validation, use irc.isNick. now instead of forcing strictRfc to true, we are using the config.
2010-04-11 17:01:31 -04:00
Daniel Folkinshteyn
67ab067e6a
take out getDb override from factoids, since i have changed it upstream, in plugins.__init__.py, to use proper sqlite3 syntax.
2010-04-11 16:40:59 -04:00
Daniel Folkinshteyn
bd1fb9f9a6
make on-join telling for later configurable.
2010-04-11 16:25:07 -04:00
Daniel Folkinshteyn
c4e5dbbe0b
topic now checks for +t mode before denying topic changes, and also allows halfops in addition to ops.
...
default required capabilities for topic changes (if topic is +t and user is not an op or halfop), are chan,op and chan,halfop
thanks jemfinch for the suggestions.
2010-04-11 12:48:08 -04:00
Daniel Folkinshteyn
8e84da8391
add replace function to format that takes varying-length strings to replace.
...
add test for it
add error test for format.translate for different length translate args.
2010-04-11 02:27:22 -04:00
Daniel Folkinshteyn
643be43466
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
2010-04-11 01:23:27 -04:00
Daniel Folkinshteyn
7f9a113060
commit mtughan's bugfix for this bug:
...
https://sourceforge.net/tracker/?func=detail&aid=2985241&group_id=58965&atid=489447
2010-04-11 00:42:55 -04:00
Daniel Folkinshteyn
b115e0d56f
change Topic to have a default required capability set, for all write operations.
...
by default, now only allows chanops, and users with admin or channel,op capability to change topics
2010-04-09 15:56:16 -04:00
Daniel Folkinshteyn
7ac4911f78
make later plugin send waiting messages on user join also, not just on privmsg.
2010-04-09 13:34:39 -04:00
Daniel Folkinshteyn
2125e6db8e
add nick validation to later tell
...
this avoids plugging the later db with messages for bogus nicks
2010-04-09 00:45:14 -04:00
Daniel Folkinshteyn
01c8f3445a
create conditional plugin with associated tests.
...
includes string and numeric comparisons, simple string matching.
2010-04-08 20:02:39 -04:00
Daniel Folkinshteyn
afe1a2124d
add a random-synonym getting function to Dict, add tests for it.
...
using the moby-thes database from dict.org.
2010-04-08 00:04:44 -04:00
Daniel Folkinshteyn
5d9273cd5a
add damerau-levenshtein distance to supybot.utils.seq
...
use it in factoids invalid command to match possible typos
write tests for same.
2010-04-07 12:33:28 -04:00
Daniel Folkinshteyn
f4d47876d4
fix some encoding error for non-ascii langs
2010-04-04 01:12:50 -04:00
Daniel Folkinshteyn
34cab7f4c9
add detected source language display for 'auto' google translate, add test for auto translate.
2010-04-03 23:31:13 -04:00
Daniel Folkinshteyn
b8f8cec6f5
enable google translate to autodetect language with 'auto' fromlang.
2010-04-02 02:03:57 -04:00
Daniel Folkinshteyn
f988736ca6
add tests for factoids.alias
2010-04-02 00:55:02 -04:00
Daniel Folkinshteyn
a3f7adaa8c
delete leftover debug-prints
2010-04-02 00:51:06 -04:00
Daniel Folkinshteyn
203308647b
add factoids alias function, to link more keys to existing factoids.
2010-04-02 00:49:43 -04:00
Daniel Folkinshteyn
58886bd1f2
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.
2010-04-02 00:08:49 -04:00
Daniel Folkinshteyn
97149b403a
make 'factoids info' include usage count in output. add test for same.
2010-04-01 00:51:25 -04:00
nanotube
32c718ca66
don't give up too easily with invalid command, instead search factoid keys with wildcard first.
2010-03-23 16:44:33 -04:00
nanotube
2e043ce19f
add rank test to factoids, update factoids test code to sqlite3
2010-03-23 13:54:31 -04:00
nanotube
0fb4dd6dff
rename factrank to just rank for consistency
2010-03-23 13:34:50 -04:00
Daniel Folkinshteyn
69c7774431
add config for required capabilities to manage the regexp db, and check for them before taking action.
2010-03-22 19:03:20 -04:00
Daniel Folkinshteyn
bb44d433f5
add replies function to reply plugin, which makes multiple replies, if supybot.reply.oneToOne is false.
2010-03-22 01:06:02 -04:00
Daniel Folkinshteyn
56862da549
add more messageparser tests
2010-03-21 22:30:30 -04:00
Daniel Folkinshteyn
45e2aa5ca7
write more test code, and in the process add some minor mods to the plugin code
2010-03-21 19:06:04 -04:00
Daniel Folkinshteyn
de4936d452
write some test code for messageparser
2010-03-21 17:43:37 -04:00
Daniel Folkinshteyn
db81745d71
update messageparser readme to point to the web doc.
2010-03-21 15:45:06 -04:00
Daniel Folkinshteyn
c2b1c1b143
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.
2010-03-21 02:44:07 -04:00
Daniel Folkinshteyn
3eb6787f6d
add vacuum method to clean up db. require admin capability by default to do this.
2010-03-19 18:51:49 -04:00
Daniel Folkinshteyn
1a3d6c3821
quote regexp in rank output.
2010-03-19 16:45:59 -04:00
Daniel Folkinshteyn
15a4b45801
rename listall and triggerrank to list and rank, to be more in conformance with normal plugin command naming practice.
2010-03-19 15:58:59 -04:00
Daniel Folkinshteyn
770d407d1c
in listall, put id in parentheses /outside/ the quotes.
2010-03-19 15:54:54 -04:00
nanotube
65ed84a45a
create info command for messageparser
2010-03-19 15:34:35 -04:00
Daniel F
4972472764
allow remove by id, if --id is specified.
2010-03-19 13:40:36 -04:00
Daniel F
7909015288
allow show by id with option --id
2010-03-19 13:34:50 -04:00
Daniel F
92389f69ef
list regexp id in listall (to be used for showing/removing regexp by id)
2010-03-19 13:24:45 -04:00
Daniel F
e2d16cb3a7
test regexp for validity before adding it.
2010-03-19 13:20:50 -04:00