2fbd76dba6
seen: make handle_seeing a @staticmethod
2015-05-19 21:55:11 -05:00
e77dc571be
markov: remove unused imports in ircplugin
2015-05-19 21:54:39 -05:00
53604c3184
ircbot: specify IrcPlugin ordering
2015-05-19 21:53:40 -05:00
f9d12811b6
TODO: update slightly, still need to clean this up
2015-05-19 21:53:11 -05:00
f907e1b592
requirements.txt: add pytz
2015-05-19 21:52:49 -05:00
244e1c3fb8
Seen: ported to irc bot v2. deleted
2015-05-15 22:40:38 -05:00
0ce83c4fa8
seen: port to irc bot v2
2015-05-15 22:40:13 -05:00
53caf2b94b
reference handlers directly rather than w/getattr
...
mostly just picking a convention
2015-05-15 22:21:15 -05:00
903a8f5c80
ircbot: list to remove_global_regex_handler
...
same as previous commit, inverse of add_, for convenience
2015-05-15 22:15:43 -05:00
134c02dc59
ircbot: list of events to add_global_regex_handler
...
for convenience, pass a list of events to add_global_regex_handler if
you want to have multiple things fire the same handler. common case is
pubmsg and privmsg
2015-05-15 22:08:00 -05:00
6982e6d438
TopicDump: obsoleted, replaced. deleted
2015-05-15 21:48:49 -05:00
a3484b0d3a
topicmonitor: monitor when channel topic changes
...
comes with a migration to add topic tracking to IrcChannel
2015-05-15 21:48:19 -05:00
b15afcade8
old-web: deleting, it is no longer valuable
2015-05-15 21:24:25 -05:00
1bd57a8c3b
Weather: ported to new bot. deleted
2015-05-15 21:23:01 -05:00
41a7628c63
weather: port weather to new style bot
2015-05-15 21:22:14 -05:00
80eca4781c
ircmgmt: cleanups, remove some unused stuff
2015-05-15 21:21:39 -05:00
fd85d37474
ircbot: use unicode_literals
...
desperate attempt to make unicode handling in this code better
2015-05-15 21:20:10 -05:00
196e12b5d0
Echo has been ported. deleted
2015-05-15 19:50:18 -05:00
77f8a1dd38
Babelfish stopped working a long time ago. deleted
2015-05-15 19:49:15 -05:00
c6cc9c4c62
Achievements is old and unused. deleted
2015-05-15 19:48:48 -05:00
16fa94cb24
markov: don't learn recursive stuff
2015-05-15 18:38:00 -05:00
43da4bff5a
markov: add !markov reply command
2015-05-15 18:37:48 -05:00
67411ad0bc
echo: a simple echo plugin
2015-05-15 18:22:13 -05:00
5716e285b6
ircbot: attempt to bring recursion back
...
so initial tests suggest this is working well, but it's not exactly the
clearest code, so let's call this a rough proof of concept of recursion
in the bot
2015-05-15 18:20:59 -05:00
115e82f0fc
ircmgmt, markov: actually use bot.reply() right
2015-05-15 18:19:55 -05:00
67098c34bb
ircmgmt: unregister handle_quit
2015-05-15 17:36:51 -05:00
07ca50dfb6
ircbot: reply() method that supports recursion
...
undecided if i'll bother to bring recursion back, but if it works out,
provide this method to either reply or give text to the thing recursing.
either way this is a bit clearer than using privmsg() directly, usually
2015-05-15 17:35:03 -05:00
94656b71d2
markov: irc plugin
...
doesn't support the (unused?) commands of the old bot yet, but does do
basic irc watching and replying
2015-05-15 17:02:28 -05:00
950ad4cc4c
markov: get_or_create_target_context properly
2015-05-15 17:02:13 -05:00
bf68099f2f
ircbot: handle more plugin load failures
...
possibly handle them a bit more cleanly, too, by deleting sys.modules
entries
2015-05-15 17:01:25 -05:00
e7839606ec
EightBall: removing, obsoleted by facts randomness
...
we never used this anyway
2015-05-15 08:38:42 -05:00
c371df5eb0
markov: move shared methods into lib.py
2015-05-15 08:36:17 -05:00
1570bc28f9
markov: increase context/target name size
2015-05-15 08:32:36 -05:00
34e0c76dce
migration for aliases plural
2015-05-15 08:31:19 -05:00
92bea5f629
Django 1.8 port: move markov templates to app dir
2015-05-15 08:30:58 -05:00
7b93c7d63c
provide reason for failure to load plugin
2015-05-14 21:43:35 -05:00
0428c30faf
add Alias support
...
allows stuff like ^!die$ -> !quit
no recursion (yet? or maybe i'll never bother), but this should allow
the basic aliases
2015-05-14 21:39:20 -05:00
e7de9f840d
minor comment cleanup so pycharm highlights it
2015-05-14 10:34:20 -05:00
34c73fccf9
create a plugin to do common basic irc actions
2015-05-12 22:39:53 -05:00
438ab414ff
use bot.die() over bot.disconnect()
2015-05-12 22:34:27 -05:00
14e5fb4d6f
ircbotlib.reply_destination_for_event
...
common idiom that'll only get used more and more, so might as well make
a library method of it
2015-05-12 22:33:09 -05:00
8c39b017d3
better _handle_event debug message
2015-05-12 22:30:32 -05:00
cf01114390
remove vim modeline
2015-05-12 20:56:36 -05:00
b762ce26c9
.gitignore the .idea directory
2015-05-12 20:56:22 -05:00
c4bfcf3e1b
add BotAdmin, IrcPlugin models
...
a lot of stuff in here around support for loading plugins from arbitrary
files. plugins have a basic amount of initialization and then hook into
the core IRC event system
it makes sense to have modules respond to regexes, so there's some
handler stuff for that --- it was the most popular way to do stuff in
the old version of the bot
we need to check that people trying to load plugins are admins, so
there's some stuff for that, too
the expectation is that many features from here are happen in plugins,
rather than modifying the core bot
2015-05-12 20:45:18 -05:00
bd3ffd4067
add channel model, support autojoining
...
known channels in the database can be set to autojoin when the bot
starts (when it gets the MOTD, because i couldn't find an "on_connect"
event)
2015-05-10 10:02:25 -05:00
0ea9c3a164
rename ircbot.py to bot.py
...
ircbot/ircbot.py confused the importer
2015-05-09 20:03:55 -05:00
3d61838a92
start the new ircbot framework
2015-05-09 18:56:26 -05:00
69fbcf2fb5
properly bootstrap the irc bot
2015-05-08 23:38:59 -05:00
ad30f2e263
bootstrap ircbot properly
2015-05-08 23:09:35 -05:00