Commit Graph

1099 Commits

Author SHA1 Message Date
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
1dd8e76942 bump django to 1.8.1 2015-05-08 22:53:38 -05:00
b13d958160 i updated pip and this is what happened 2015-05-08 22:34:09 -05:00
b9ca5896e2 bump django-extensions to 1.5.3 2015-05-08 22:32:54 -05:00
518ad4174a django bump to 1.7.8 2015-05-08 22:32:04 -05:00
1484aded84 reorganizing project directories, part 2 2015-05-08 20:44:24 -05:00
2ffdf26ec2 reorganizing project directories, part 1 2015-05-08 20:37:22 -05:00
827131eeda bump django 2015-03-29 10:29:25 -05:00
b7b165fd8f Markov: default bot to only one sentence replies 2014-05-03 21:00:48 -05:00
2917ea9626 Markov: indicate # sentences we want in a line
before we were just adding words until we hit the min/max, now let's
also count the number of sentences and have a cutoff there, if we don't
want the whole appending thing no matter what
2014-05-03 20:56:33 -05:00
dbc3d16f65 Markov: only add sentence punctuation if necessary 2014-05-03 20:54:26 -05:00
676d109f57 Markov: even more unicode fixes 2014-05-03 20:50:15 -05:00
244720934c Markov: rename internal methods to make them clear 2014-05-03 20:47:48 -05:00
3856a1e95b Markov: try to fix unicode errors in irc bot 2014-05-03 20:44:52 -05:00
a9560b6fa2 bump django 2014-04-24 20:46:03 -05:00
f9ed58ad52 Markov: some indexes to MarkovState, might help 2014-04-05 23:09:50 -05:00
bf6a43ec9e Markov: improve performance of state transitions 2014-04-05 22:54:39 -05:00
c193b7f4be Markov: support ignoring prefixes in import/learn
this is so we can ignore/strip "botname: " ish lines
2014-04-05 18:00:45 -05:00
1fc13b011d Merge branch 'master' of git.incorporeal.org:dr.botzo 2014-04-05 17:26:17 -05:00
cc5b8e88e6 Races: order updates by event time 2014-04-05 17:24:31 -05:00
54efe617d0 Markov: only split two \ts on file import 2014-04-05 16:39:44 -05:00
97070d495f Markov: assuming file uploads are utf8 2014-04-05 16:18:48 -05:00
f1ff281da2 Markov: port IRC bot module to django models
work in progress, not everything works yet, but the important stuff
should
2014-04-05 15:55:33 -05:00
6a50db0e3d Markov: field changes: uniqueness, max_length 2014-04-05 15:55:06 -05:00
169f73cb36 Markov: view/form/etc for teaching lines 2014-04-05 14:53:30 -05:00
9c08a203c7 Markov: generate markov chains into sentences
some view stuff to get at it through django while we're here
2014-04-05 14:52:30 -05:00
ad2044a178 Markov: unicode debugging lines 2014-04-05 14:24:30 -05:00
acfcd574b5 Markov: add a permission for importing from a log 2014-04-05 11:20:59 -05:00
399d419824 Markov: heed k1/k2/v length limit when importing 2014-04-05 11:09:03 -05:00
77e52acc75 Markov: first cut of markov in django
this is just a basic port of the tables into django models right now.
there's some serious slowness in the state creation that i need to fix
before this does anything, but i want to get this in a real database on
a real linode before i go too much further, so here it is
2014-04-05 10:52:29 -05:00
197f9908e6 .gitignore *.log 2014-04-05 10:50:33 -05:00
c1fadb7b74 Races: add some logging stuff for later use 2014-04-05 10:50:01 -05:00
f9c7388bae just return a blank page for the index
i'll keep the index.html around for when we eventually use it, though
2014-04-05 10:49:23 -05:00
c8a72cf8a5 Merge branch 'master' of git.incorporeal.org:dr.botzo 2014-03-20 19:22:28 -05:00
54b6da689d Races: really basic races site with a detail page
getting this out there so that i maybe feel motivated to make it not
suck in the future
2014-03-20 19:21:56 -05:00
db1f77e102 blank index page. code stolen from polycephaly 2014-03-20 19:21:11 -05:00
92b7e3b333 templates and static dirs for when they happen 2014-03-20 19:19:43 -05:00
65419d1cdb Races: fix FK migration to use a char default val 2014-03-20 18:41:30 -05:00
643147cec7 Races: add FK to Race in RaceUpdate 2014-03-20 18:36:52 -05:00
f6fb16225f .gitignore *.json 2014-03-20 18:34:37 -05:00
1157fab28f Races: log the proper thing on a start 2014-03-20 18:32:48 -05:00
5fff9411a5 Races: add module to do a crude racebot thing
join/start/update/finish/leave. good enough start i think
2014-03-16 15:46:15 -05:00
3316f4a868 Seen: don't overwrite the speaking nick
in case we ever need it for anything
2014-03-16 15:14:34 -05:00
bda4b78564 DrBotIRC: have regex handler take list of events
forgot to commit the unhook part
2014-03-16 15:09:46 -05:00