-
fc2814e57c
don't attach to pubmsg/privmsg events by default anymore.
Brian S. Stephan
2011-01-07 21:04:33 -06:00
-
0bd681c324
convert most modules to use ! commands.
Brian S. Stephan
2011-01-07 20:37:24 -06:00
-
6b2af47552
don't display 'debug' in the alias list
Brian S. Stephan
2011-01-07 20:36:42 -06:00
-
f0730a5edf
update privmsg splitting bug
Brian S. Stephan
2011-01-07 19:34:20 -06:00
-
efb92ddc83
reload should call irc.reload_module, not unload_module
Brian S. Stephan
2011-01-07 19:09:09 -06:00
-
d637983ae1
apparently ply doesn't like docstrings in its functions
Brian S. Stephan
2011-01-07 18:42:56 -06:00
-
01d3c7c80c
migrate some code that became pivotal to the bot into DrBotIRC.
Brian S. Stephan
2011-01-07 17:38:26 -06:00
-
973dbae90e
document !part thinko
Brian S. Stephan
2011-01-07 17:23:15 -06:00
-
3333fe125e
Revert "fix the cheap unicode escapes in GoogleTranslate"
Brian S. Stephan
2011-01-07 17:11:00 -06:00
-
02b3266b46
give MegaHAL priority 95 (which is low priority, which always confuses me)
Brian S. Stephan
2011-01-07 11:24:38 -06:00
-
b4f1c5facd
MegaHAL: docstring stuff
Brian S. Stephan
2011-01-07 11:23:46 -06:00
-
11dd04d4db
document a bug i keep forgetting about
Brian S. Stephan
2011-01-07 09:59:10 -06:00
-
4d6228b93a
move DrBotIRC into a separate file, since we will probably be hacking more on it soon
Brian S. Stephan
2011-01-07 09:54:51 -06:00
-
35419f9db9
to stop responding by default is too much power for one module to wield
Brian S. Stephan
2011-01-07 09:19:19 -06:00
-
b7ce4b6dcc
add Alias at priority 1 (so that it is handled first)
Brian S. Stephan
2011-01-07 01:11:35 -06:00
-
de3f9d9ae7
provide a priority (default 50) to add_global_handler
Brian S. Stephan
2011-01-07 01:10:52 -06:00
-
8bec2e62a1
make it possible for a module to respond and tell irclib to stop calling other handlers.
Brian S. Stephan
2011-01-07 00:44:31 -06:00
-
a451eceef3
TODO: some crap i can't decide on or am too lazy to undertake on a whim
Brian S. Stephan
2011-01-06 23:31:42 -06:00
-
8bbda8b575
if we add the module to the autoload list on a load, we should remove it on unload
Brian S. Stephan
2011-01-06 23:29:51 -06:00
-
a3d30daacb
given how we load modules now, we don't need modules/__init__.py
Brian S. Stephan
2011-01-06 23:27:52 -06:00
-
acca8723b3
convert to/standardize docstrings a bit.
Brian S. Stephan
2011-01-06 23:25:46 -06:00
-
247719814e
magic 8-ball module.
Brian S. Stephan
2011-01-06 23:08:33 -06:00
-
40888869b0
fix the cheap unicode escapes in GoogleTranslate
Brian S. Stephan
2011-01-06 22:53:21 -06:00
-
b487caf12d
make the config file argument optional.
Brian S. Stephan
2011-01-06 22:43:10 -06:00
-
00d5502477
remove some stuff that's been commented out for a while now
Brian S. Stephan
2011-01-06 22:40:45 -06:00
-
2f90304a47
module loading/unloading looks pretty well implemented
Brian S. Stephan
2011-01-06 22:33:24 -06:00
-
85c5c69cb9
weird megahal corruption strikes again.
Brian S. Stephan
2011-01-06 22:26:24 -06:00
-
c1c9908d5d
don't include metaopt meta.internal_only in lists (such as aliases)
Brian S. Stephan
2011-01-06 22:17:46 -06:00
-
bd95764f9f
cleanup the sentence feedback
Brian S. Stephan
2011-01-06 22:12:19 -06:00
-
5293e8dc24
add support for listing one alias via list, which shows the value
Brian S. Stephan
2011-01-06 22:08:23 -06:00
-
f5f7814515
reload/unload changes appear to have fixed a number of related bugs
Brian S. Stephan
2011-01-06 20:00:26 -06:00
-
5913e0b183
remove MegaHAL's nullifying of reload() since it's obsolete.
Brian S. Stephan
2011-01-06 19:58:58 -06:00
-
ea0fd9d509
small but significant unload/reload changes.
Brian S. Stephan
2011-01-06 19:54:16 -06:00
-
99b474c85b
initial bug list - mostly load/reload/unload oddities, but also an annoying MegaHAL interaction
Brian S. Stephan
2011-01-06 17:17:10 -06:00
-
9c5d78891c
make a deep copy of the string to feed to mh_python.
Brian S. Stephan
2011-01-06 17:15:57 -06:00
-
0878c8809d
implement a save() for modules, use it in MegaHAL to sync brain to disk
Brian S. Stephan
2011-01-06 00:28:50 -06:00
-
5c0323fc26
Merge branch 'master' of ayu.incorporeal.org:dr.botzo
Brian S. Stephan
2011-01-06 00:18:37 -06:00
-
-
d81350d995
remove megahal.py from EXTERNALS
Brian S. Stephan
2011-01-06 00:18:02 -06:00
-
9732ed2f34
use a different megahal implementation, which seems to be better at saving the brain.
Brian S. Stephan
2011-01-06 00:14:16 -06:00
-
157d1145ea
specify ellipses continuation as a python string
Brian S. Stephan
2011-01-05 09:34:19 -06:00
-
-
4241071b7e
print tweet id when printing tweets.
Brian S. Stephan
2011-01-03 00:31:23 -06:00
-
b748d43bbd
have SIGINT handler call modules' shutdown()
Brian S. Stephan
2010-12-24 13:46:48 -06:00
-
63a85fba3f
Merge remote branch 'origin/mjb/fix_init'
Brian S. Stephan
2010-12-24 13:27:33 -06:00
-
-
0e7e2bf50c
add tweet subcommand to twitter, to send tweets.
Brian S. Stephan
2010-12-24 13:19:50 -06:00
-
d9b85f4364
track whether or not the twitter module has been authenticated
Brian S. Stephan
2010-12-24 13:19:11 -06:00
-
41a5c43284
use the right signature for Module.reload()
Brian S. Stephan
2010-12-24 13:18:23 -06:00
-
377d2145fa
catch all exceptions around self.do, and log to console
Brian S. Stephan
2010-12-24 13:16:09 -06:00
-
f590daf5cd
have all modules run a shutdown() when quitting, use it to have MegaHAL close the brain
Brian S. Stephan
2010-12-24 10:41:12 -06:00
-
cb54abf2b8
use protocol 2 for pickling, which may help disk size of the brain a bit
Brian S. Stephan
2010-12-24 10:36:57 -06:00
-
0ff44e1a47
don't have megahal learn internal commands
Brian S. Stephan
2010-12-24 09:48:04 -06:00
-
9ed1586783
shouldn't need this unicode workaround anymore (fingers crossed)
Brian S. Stephan
2010-12-24 09:42:49 -06:00
-
c513a0bebc
extlib/megahal.py: don't crash when the input string ends in '
Brian S. Stephan
2010-12-23 10:01:11 -06:00
-
ae6eda2c6a
encode facts coming out of Facts to python string
Brian S. Stephan
2010-12-20 22:22:37 -06:00
-
8ffcecdff0
hacked out loading of all modules from __init__
Mike Bloy
2010-12-17 22:46:48 -06:00
-
107b754a0d
move recursion scan after alias setup, and do another after alias replace
Brian S. Stephan
2010-12-17 16:12:45 -06:00
-
-
1fe9575502
move recursion stuff out of Module.py and into modules/Alias.py
Brian S. Stephan
2010-12-16 23:43:16 -06:00
-
d18b2e49ff
add 'meta.internal_only' option, defaulting to true
Brian S. Stephan
2010-12-16 21:06:20 -06:00
-
bda1eb9560
add uppercase text transform
Brian S. Stephan
2010-12-16 20:28:26 -06:00
-
699f550ba3
change authentication to over IRC process
Brian S. Stephan
2010-12-16 20:15:49 -06:00
-
3ba38bd90d
it would help if i got the < vs > right
Brian S. Stephan
2010-12-16 15:44:51 -06:00
-
efafb95f5a
ability to look up tweets for a user, relative to the latest
Brian S. Stephan
2010-12-16 15:23:35 -06:00
-
57ddba744e
optionally print the source of the tweet in question
Brian S. Stephan
2010-12-16 15:22:34 -06:00
-
a18897fcde
print the native tweet of retweets (rather than the possibly-truncated one)
Brian S. Stephan
2010-12-16 13:04:58 -06:00
-
e2989b639c
hack in support for retweets in the Status
Brian S. Stephan
2010-12-16 13:02:37 -06:00
-
1bacfe047e
fix (god i hope fix) unicode in Twitter
Brian S. Stephan
2010-12-16 10:36:50 -06:00
-
37a677946d
fetch more tweets in case the latest was a RT (which we are filtering)
Brian S. Stephan
2010-12-15 23:52:59 -06:00
-
7e4e6ab23f
look up most recent tweet by username
Brian S. Stephan
2010-12-15 23:31:26 -06:00
-
e4edc7f6f4
first bit of bot twitter functionality
Brian S. Stephan
2010-12-15 23:08:08 -06:00
-
bc13725f44
copy python-twitter 0.8 from google code until it is officially released and packaged
Brian S. Stephan
2010-12-15 23:07:02 -06:00
-
ea0f795194
add unload method to IrcAdmin, which unloads a module
Brian S. Stephan
2010-12-15 21:28:57 -06:00
-
2295f524d4
add load command to IrcAdmin, which (naturally) loads a module and adds it to the autoload list
Brian S. Stephan
2010-12-15 21:17:24 -06:00
-
467c72847a
clean up some IrcAdmin output, which i was using to test reloading
Brian S. Stephan
2010-12-15 20:58:13 -06:00
-
e0565a9bb1
take a stab at commenting how MegaHAL reload is broken, keep it unimplemented for the moment
Brian S. Stephan
2010-12-15 20:55:40 -06:00
-
0db4dbb518
duh, actually call register_handlers after doing a module reload
Brian S. Stephan
2010-12-15 20:55:04 -06:00
-
7a9b68f2c4
remove unnecessary method, preferring register_handlers
Brian S. Stephan
2010-12-15 20:53:52 -06:00
-
22615d7b9a
rewrite reload support, making it an IrcAdmin command
Brian S. Stephan
2010-12-15 20:43:14 -06:00
-
d92d60ec7a
don't try to be clever with the +-/-+ commands, since it wasn't doing what I wanted
Brian S. Stephan
2010-12-15 20:29:25 -06:00
-
e5934bccba
add echo module, which echos text. why i never implemented this, i don't know
Brian S. Stephan
2010-12-11 00:22:26 -06:00
-
e084c28113
handle potential newlines in output
Brian S. Stephan
2010-12-11 00:10:26 -06:00
-
977675c593
add base64 to text transformations
Brian S. Stephan
2010-12-10 23:59:49 -06:00
-
da9e4b3142
better method of loading modules --- don't import *, import each individually
Brian S. Stephan
2010-12-10 23:25:56 -06:00
-
5a81f4d1fc
fix spaces in city name
Brian S. Stephan
2010-12-09 13:09:01 -06:00
-
914e86d567
don't try to privmsg (and then crash) if replystr is None
Brian S. Stephan
2010-12-08 22:18:46 -06:00
-
2690c0208c
trivial formatting fix
Brian S. Stephan
2010-12-08 22:15:26 -06:00
-
1709df19ec
properly self.reply in last commit
Brian S. Stephan
2010-12-08 22:14:34 -06:00
-
53e2da7bd3
self.reply karma_modify stuff, add return strings from double functions
Brian S. Stephan
2010-12-08 22:08:56 -06:00
-
7fa9c1f9a0
modify the karma_modify header:
Brian S. Stephan
2010-12-08 22:05:46 -06:00
-
4013a93dc9
Merge branch 'bloy-karma'
Brian S. Stephan
2010-12-08 22:00:39 -06:00
-
-
a19dcdb690
fix string concat thinko
Brian S. Stephan
2010-12-06 16:31:16 -06:00
-
a8562f71a0
slight code cleanup, add windchill calculation
Brian S. Stephan
2010-12-06 16:01:49 -06:00
-
9340c76361
remove trailing whitespace
Mike Bloy
2010-12-01 10:58:04 -06:00
-
b425895107
optimist/pessimist report
Mike Bloy
2010-11-25 13:05:23 -06:00
-
acee8752a5
highest and lowest karma report
Mike Bloy
2010-11-25 12:59:15 -06:00
-
699500707d
Merge branch 'master' into karma
Mike Bloy
2010-11-25 11:44:48 -06:00
-
-
-
-
30d49bcd5d
karma stat command
Mike Bloy
2010-11-25 11:41:12 -06:00
-
a434c3738f
error reporting in karma_modify
Mike Bloy
2010-11-25 11:15:37 -06:00
-
40c7603eac
updating TODO
Brian S. Stephan
2010-11-24 16:10:10 -06:00
-
8cc0e81497
document origins of megahal.py
Brian S. Stephan
2010-11-24 16:08:51 -06:00
-
647a2edb5c
thinking about new karma commands
Mike Bloy
2010-11-23 22:05:03 -06:00
-
-
120dcc9fda
slightly more anal silly karma handling
Mike Bloy
2010-11-23 21:45:47 -06:00