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
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
a88353dd0d
Merge branch 'messageparser.sqlite3' into mergempsqlite3
2010-03-16 14:28:26 -04:00
Daniel Folkinshteyn
0e50249256
start factoid rankings from 1 not from 0
2010-03-15 23:12:35 -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
Daniel Folkinshteyn
d1c00ccbaf
remove rogue test-print
2010-03-08 14:49:58 -05:00
Daniel Folkinshteyn
9db1598a0e
sort keys in factoid search output by alphabetically by key name.
2010-03-05 14:51:25 -05:00
Daniel Folkinshteyn
fcd262cd4b
implement factoid usage counter
2010-03-05 14:08:11 -05:00
James Vega
397cbbe0d3
Internet: Use whois-servers.net for all whois lookups.
...
rs.internic.net seems to be broken and using $tld.whois-servers.net looks to
be working for everything.
Also need to update the line termination string to use '\r\n' instead of '\n'
since some servers are strict about receiving the former.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-03-03 08:33:44 -05:00
James Vega
4a9596608a
Include hostmasks in JOIN, PART, QUIT logs.
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-02-28 21:17:35 -05: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
288d7c6e02
Update plugins to ignore all non-ACTION CTCP messages.
...
Also update commands.urlSnarfer to do the same, which allows us to revert
"Don't bother snarfing URLs from non-Action CTCP messages."
This reverts commit 3282e3407e
.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-01-28 08:14:44 -05:00
Jeremy Fincher
3282e3407e
Don't bother snarfing URLs from non-Action CTCP messages.
2010-01-28 06:35:53 -06:00
Štěpán Němec
9e15d03375
Filter plugin: improve the `uniud' replacements.
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-01-27 19:01:54 -05:00
Štěpán Němec
3a992ba78e
Format plugin: Delete stray `configure' definition from plugin.py.
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-01-15 21:57:07 -05:00
James Vega
408ab6f88a
Network: Properly parse WHOIS response
...
The 319 message that indicates which channel(s) a user is in prefix the
channel name with the modes (@, +, !, etc.) applied to that user. These need
to be stripped from the channel name before we feed it to
irc.state.channels.get(), otherwise when irc.state.channels.get() returns None
we assume the channel can't be private and leak information.
2010-01-10 20:17:10 -05:00
James Vega
3689460d0f
Use 0 when no results are returned for Google.fight
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-11-28 21:21:00 -05:00
James Vega
fbdc44ca52
Switch from using the various popen flavors to subprocess.Popen
...
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-11-22 14:31:58 -05:00
Daniel Folkinshteyn
e303cab7ae
work on getting moobotfactoids to work with sqlite3
...
note: needs sqlite3 version > 3.3.1, so that it is not restricted against cross-thread usage.
2009-11-18 23:16:21 -05:00
Daniel Folkinshteyn
b77c649c8a
factoids now works with sqlite3, all tests pass.
2009-11-18 12:04:52 -05:00
Daniel Folkinshteyn
5bf71395e7
another step toward sqlite3
2009-11-18 02:27:48 -05:00
Daniel Folkinshteyn
cc1f4ea015
some more mods toward getting sqlite3 to work
2009-11-18 02:03:44 -05:00
Daniel Folkinshteyn
11446c7cb5
some work in progress getting plugins to work with sqlite3
2009-11-18 01:48:11 -05:00