ian%hixie.ch
298dda5319
Try to handle the disappearing connection problem for the common case.
...
git-svn-id: svn://10.0.0.236/trunk@161779 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-05 11:34:46 +00:00
ian%hixie.ch
ff727f921e
Rude is no longer that useful, but is left here for posterity's sake. Add a comment noting the demise of its servers.
...
git-svn-id: svn://10.0.0.236/trunk@161759 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 16:30:13 +00:00
ian%hixie.ch
7b3295a6fb
God should also do autovoice. Add a comment to this effect. (Actually it should do a lot more, see bug 240259)
...
git-svn-id: svn://10.0.0.236/trunk@161758 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 16:26:56 +00:00
ian%hixie.ch
8edfd8241a
Make mozbot more resilient to database problems: It will now try to reconnect if some of the database things fail. Also, add a comment about a missing feature (multiple server support would rock). Mention why we ignore errors at one point. Finally, remove the event argument from one of the methods since it didn't use it nor need it.
...
git-svn-id: svn://10.0.0.236/trunk@161757 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 16:22:37 +00:00
ian%hixie.ch
1b292fb52b
Minor typo... (eagull->seagull)
...
git-svn-id: svn://10.0.0.236/trunk@155466 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-24 23:54:35 +00:00
ian%hixie.ch
9ac65a0869
=This is quite a serious bug. Turns out that modules (of course) run in the scope of the method in which they were loaded... which means they can access variables such as 'nick' that are defined using my in the global scope. Ouch. Anyway, this fixes the problem with bots randomly losing their nick while using Karma. I would have caught it earlier, but I don't use Karma myself, so...
...
git-svn-id: svn://10.0.0.236/trunk@153979 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-15 13:19:23 +00:00
ian%hixie.ch
9d7a2c597c
Riiiiight... Maths.... One day I'll get them right, honest. Hope nobody is using mozbot for conversions where it matters, I wouldn't want to be blamed, e.g., for a shuttle disaster or some such.
...
git-svn-id: svn://10.0.0.236/trunk@152874 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-18 14:42:55 +00:00
ian%hixie.ch
485fadb041
If we've checked spelling, don't let Infobot (for example) answer it too.
...
git-svn-id: svn://10.0.0.236/trunk@152526 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-08 22:22:14 +00:00
ian%hixie.ch
eac5a24cdc
Add in a missing key to the patProtected hash which was missed during the last checkin.
...
git-svn-id: svn://10.0.0.236/trunk@152525 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-08 22:21:35 +00:00
ian%hixie.ch
ab94b0bcf1
Correct an off by one (order of magnitude) error, and change the code so it is even more like copy and paste... one day I really should unify these functions.
...
git-svn-id: svn://10.0.0.236/trunk@152455 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-07 03:35:07 +00:00
ian%hixie.ch
f84bf13a0b
Hugs and Pats by popular request. Anyone else think this module is getting out of hand? :-)
...
git-svn-id: svn://10.0.0.236/trunk@152452 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-07 02:49:10 +00:00
ian%hixie.ch
f263364c7f
We should never try to ask _ourselves_ what stuff is, that's just silly!
...
git-svn-id: svn://10.0.0.236/trunk@152412 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-06 12:19:13 +00:00
ian%hixie.ch
7b95e5f745
Oops, must reply to status in round 1. Make the Told handlers slightly happier about replying early.
...
git-svn-id: svn://10.0.0.236/trunk@152411 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-06 12:03:37 +00:00
ian%hixie.ch
01ce8e18df
Ok, we don't really need ridiculouslyEagerToHelp, just use the autoHelp variable which is per channel.
...
git-svn-id: svn://10.0.0.236/trunk@152376 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-05 16:50:52 +00:00
ian%hixie.ch
cfab0c9e10
No longer support 'foo karma' or 'foo rank' since they clashed with 'help karma' and 'help rank' and other commands of that syntax.
...
git-svn-id: svn://10.0.0.236/trunk@152168 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-02 18:01:12 +00:00
ian%hixie.ch
2f43575406
Oops, Infobot was way too eager to help even in non-eager mode. Make the 'no,' prefix only take effect if the bot thinks it is a direct statement.
...
git-svn-id: svn://10.0.0.236/trunk@152160 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-02 10:38:14 +00:00
ian%hixie.ch
1b91695a6d
Patch by Eira to support times and weight conversions. Reviewed and changed a bit by me.
...
git-svn-id: svn://10.0.0.236/trunk@152148 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-01 18:55:47 +00:00
ian%hixie.ch
8ddd24048a
Remove spurious blank line which _seems_ to be causing problems in old perls.
...
git-svn-id: svn://10.0.0.236/trunk@152147 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-01 16:16:19 +00:00
ian%hixie.ch
53d6f6c85a
Done Currency now. :-)
...
git-svn-id: svn://10.0.0.236/trunk@152146 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-01 16:15:46 +00:00
ian%hixie.ch
af5e2fc2b1
Currency convertor thanks to xe.com. Patch originally by Alex Schuilenburg <alex@schuilenburg.org>. Heavily edited by me. See bug 231120.
...
git-svn-id: svn://10.0.0.236/trunk@152145 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-01 16:06:18 +00:00
ian%hixie.ch
f3f6fbb43a
Oops, checkRights was completely broken due to a couple of typos...
...
git-svn-id: svn://10.0.0.236/trunk@152143 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-01 14:30:31 +00:00
ian%hixie.ch
a2cab20a10
Also accept 'commands' command instead of help, since it is what some people expect. We should probably also support 'list' but that is more likely to clash with other modules.
...
git-svn-id: svn://10.0.0.236/trunk@151953 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-28 13:09:40 +00:00
ian%hixie.ch
10e8cd8e2d
Make the help line shorter so it doesn't wrap.
...
git-svn-id: svn://10.0.0.236/trunk@151952 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-28 13:08:18 +00:00
ian%hixie.ch
27c4316aae
First, dramatically reduce the priority of Infobot responses. Especially with eager mode enabled, infobot was being ridiculously helpful, butting in to all kinds of conversations with other modules. Also, don't treat 'bla is bla?' as a statement. This may need tweaking some (now it treats it as a question for 'bla is bla', which you can't easily set anyway)
...
git-svn-id: svn://10.0.0.236/trunk@151951 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-28 13:07:05 +00:00
ian%hixie.ch
7570f93aec
mixed case help lines were getting lost
...
git-svn-id: svn://10.0.0.236/trunk@151901 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-27 12:31:32 +00:00
ian%hixie.ch
931856198b
Update documentation to match latest changes w.r.t. SpottedPart and SpottedQuit. Document 'unload' since three standard modules use it.
...
git-svn-id: svn://10.0.0.236/trunk@151878 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-27 01:42:28 +00:00
ian%hixie.ch
04b7e987b9
Make XMLLogger work again (fallout from the time patch a while back)
...
git-svn-id: svn://10.0.0.236/trunk@151877 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-27 01:29:18 +00:00
ian%hixie.ch
5fe8dc9baf
in eager mode, it looks silly if we don't trim trailing dots.
...
git-svn-id: svn://10.0.0.236/trunk@151860 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-26 22:03:03 +00:00
ian%hixie.ch
6682668d89
Make the port optional since not everyone knows it's 3306 :-)
...
git-svn-id: svn://10.0.0.236/trunk@151858 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-26 21:55:38 +00:00
ian%hixie.ch
53e4556451
More ways to insult (and praise) the bot.
...
git-svn-id: svn://10.0.0.236/trunk@151857 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-26 21:34:09 +00:00
ian%hixie.ch
7ad690733a
* Keep track of age of quotes so we can avoid showing some quotes more than others
...
* Remove commented out code
* Fix the search string parser to actually, er, work
* Don't report number of matches using numbers if there is only one
* Check database is up before reporting status
* Check database is not empty before reporting status
* Report most popular quote
git-svn-id: svn://10.0.0.236/trunk@151855 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-26 20:33:16 +00:00
ian%hixie.ch
61264a65a8
Crash protection for faulty modules that raise exceptions when reporting their help info.
...
git-svn-id: svn://10.0.0.236/trunk@151851 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-26 20:06:40 +00:00
jake%bugzilla.org
bfc8514519
Bug 232156: Bugzilla 2.17.3 changed some field names in the RDF output. Make Mozbot succeed with either schema.
...
r= bbaetz
git-svn-id: svn://10.0.0.236/trunk@151836 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-26 02:57:03 +00:00
ian%hixie.ch
db2c8cb185
Quotebot. Requires MySQL. Based on a specification written by Nortis http://www.blomstereng.org/
...
git-svn-id: svn://10.0.0.236/trunk@151835 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-26 00:48:52 +00:00
ian%hixie.ch
f6560e15fe
Standardise on 'status' as the status command for all modules.
...
git-svn-id: svn://10.0.0.236/trunk@151829 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-25 13:05:45 +00:00
ian%hixie.ch
5f7cbc8e30
Support comments, p tags, and div tags.
...
git-svn-id: svn://10.0.0.236/trunk@151828 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-25 13:04:23 +00:00
ian%hixie.ch
0ff30abb52
Added some default hit protection. Removed a redundant variable definition. Implemented responses for tickling and apologies. Added some support for the moronic misspelt 'u' (you) form. Added support for shaking hands. Added some insults to handle and cleaned up (/x) two regular expressions that were getting very long.
...
git-svn-id: svn://10.0.0.236/trunk@151827 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-25 11:41:48 +00:00
ian%hixie.ch
55d940d6f6
Upgrade the insult protection overrides to be more customisable. Add more of them by default. Note that this is not a backwards compatible change but since we haven't released a version with this module yet, that's ok.
...
git-svn-id: svn://10.0.0.236/trunk@151813 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-25 00:08:43 +00:00
ian%hixie.ch
d7a22506e5
New fortune cookie format, in case we ever add more types of cookies. Limit on size of cookie file, to prevent trivial DOS attack. Prevent the addition of duplicate cookies.
...
git-svn-id: svn://10.0.0.236/trunk@151812 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-24 23:56:12 +00:00
ian%hixie.ch
dc5e90448e
* Support fluffy "tell me" prefix
...
* Fix a bug introduced in version 1.10 which made Infobot, ah, not work. (bug 223905, thanks to Charlie, Michael, and justdave)
* Support for more fluffy wording (expletives in questions)
* Space out some regular expressions
* Made the "anyone know what foo is" form actually work for the first time
* Fix the bug introduced 7 patches ago, which I partly fixed 5 patches ago, in which "targetted" comments wouldn't be, ah, targetted.
git-svn-id: svn://10.0.0.236/trunk@151811 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-24 23:48:11 +00:00
ian%hixie.ch
9556431c76
minor documentation error fix
...
git-svn-id: svn://10.0.0.236/trunk@151799 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-24 18:40:07 +00:00
justdave%syndicomm.com
6e3cc92ad7
small whitespace change to test cvs back-end changes related to this file
...
git-svn-id: svn://10.0.0.236/trunk@151634 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 07:58:31 +00:00
justdave%syndicomm.com
dc593afe09
Bug 115642: Use XML for buglists, and lots of other goodies. This makes the Bugzilla.bm module actually work now. :)
...
Patch primarily by Jake Steenhagen <jake@bugzilla.org> and Bradley Baetz <bbaetz@acm.org>
r= justdave
git-svn-id: svn://10.0.0.236/trunk@151633 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 07:45:39 +00:00
ian%hixie.ch
be76d34cd6
eagerToHelp and ridiculouslyEagerToHelp modes. See bug 142371.
...
git-svn-id: svn://10.0.0.236/trunk@148398 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-26 12:14:39 +00:00
ian%hixie.ch
9d2f7235af
Bug 141346: 'I am' wasn't learning correctly.
...
git-svn-id: svn://10.0.0.236/trunk@148397 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-26 11:58:06 +00:00
ian%hixie.ch
ff459ae97a
Escape nicks in regular expressions so that they still work even if the bot is called something silly like '[bot]'. Bug 134599.
...
git-svn-id: svn://10.0.0.236/trunk@148396 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-26 11:30:09 +00:00
ian%hixie.ch
eec4b7aad8
fix minor grammar error
...
git-svn-id: svn://10.0.0.236/trunk@148141 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-19 22:33:00 +00:00
ian%hixie.ch
9c8fcf4021
Homogenise the violence code a bit.
...
git-svn-id: svn://10.0.0.236/trunk@148140 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-19 22:13:42 +00:00
ian%hixie.ch
72e394934b
Insult Generator. See bug 204356 for details.
...
git-svn-id: svn://10.0.0.236/trunk@148139 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-19 22:11:16 +00:00
ian%hixie.ch
ef99ec1094
dumb bot
...
git-svn-id: svn://10.0.0.236/trunk@148137 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-19 21:06:56 +00:00