Commit Graph

27 Commits

Author SHA1 Message Date
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
Daniel F
f9cc5d5663 add lock and unlock command methods 2010-03-19 10:44:23 -04:00
Daniel F
adb53a0a35 preserve usage count upon overwriting an existing regexp entry. 2010-03-19 09:55:43 -04:00
Daniel Folkinshteyn
910ba732d2 update readme.txt for ability to use commands as trigger responses. 2010-03-19 00:06:37 -04:00
Daniel Folkinshteyn
76d25a193b ignore messages addressed to bot directly, in the messageparser. 2010-03-17 23:54:28 -04:00
Daniel Folkinshteyn
629ede010a forget about unicode, and just use text_factory str for sqlite to retrieve raw bytes out of text fields without conversions. 2010-03-17 13:19:07 -04:00
Daniel Folkinshteyn
6ceeace44d process multiple matches of a regexp per message 2010-03-17 12:37:34 -04:00
Daniel Folkinshteyn
95aa56c694 fix sqlite3 import for python 2.4 2010-03-17 01:55:23 -04:00
Daniel Folkinshteyn
dbbef9ec43 use double quotes in listall. 2010-03-16 16:51:30 -04:00
Daniel Folkinshteyn
d72649c5c5 give messageparser ability to use arbitrary commands as trigger responses. 2010-03-16 16:49:55 -04:00
Daniel Folkinshteyn
f8ddba0d15 get messageparser to use sqlite3. should work now.... 2010-03-15 20:06:24 -04:00
Daniel Folkinshteyn
3326212d55 fix typo (write-o, really) in string for show command 2010-03-15 17:40:57 -04:00
Daniel Folkinshteyn
0c87c523d2 use irc.reply instead of irc.error for conditions that are expected to normally occur on occasion,
also, add returns after error conditions (i assumed earlier that irc.error returned) - this fixes some bugs.
2010-03-15 17:32:02 -04:00
Daniel Folkinshteyn
f6a86a81ce populate the readme with useful tutorial! :) 2010-03-15 17:17:11 -04:00
Daniel Folkinshteyn
f62be4b4a7 implement the messageparser plugin.
at the moment, it is constrained only to echo messages, rather than arbitrary commands, for triggers
maybe that'll change in the future...
2010-03-11 01:59:37 -05:00
Daniel Folkinshteyn
5b05944838 create stub of messageparser plugin 2010-03-10 01:27:00 -05:00