Commit Graph

161 Commits

Author SHA1 Message Date
c9f73f44e2 markov: point admin forms at templates properly 2016-06-30 16:26:06 -05:00
81339a4f16 markov: bit of debug logging in file import 2016-06-30 16:25:38 -05:00
b82e5309e1 drop the artificial data point at 0,0
kinda screwing up some graphs
2016-03-31 19:19:35 -05:00
c364578e5d lowercase the key in karma graph URL 2016-03-31 16:47:17 -05:00
e5263d0019 show karma graph with date-based X range
this is way more interesting of a graph than delta-based, which just
ends up being a linear slope. dunno what i was thinking yesterday
2016-03-31 16:36:10 -05:00
dab41fa7d3 pad the bottom of pages' content 2016-03-30 18:06:44 -05:00
50f2b12c18 only build history once in karma graph, do history 2016-03-30 18:04:19 -05:00
08da8ea9f3 tweak karma graph output for many data points
if there's a ton of data points, the graph starts looking real gross,
so do a couple things to make the display of that a bit simpler so
there's less noise and distracting lines and whatnot
2016-03-30 17:57:00 -05:00
3e9302c89c don't display dots on the karma graph 2016-03-30 17:26:59 -05:00
03047c458f add an initial point to the karma key graph 2016-03-30 17:20:33 -05:00
28002db80b tweak the karma graph colors a bit 2016-03-30 17:19:06 -05:00
6fad9202ca add karma graphs view to the django site
pretty simplistic for the moment, it will become more robust later (TM)
2016-03-30 17:08:01 -05:00
03b90fe50a add KarmaKey.history()
calculates the value of the score at every point in the score's history.
might be slow, unsure yet
2016-03-30 17:06:12 -05:00
33bf61712e more bootstrap config stuff
these will be necessary for other jquery things in a moment
2016-03-30 17:05:26 -05:00
85f9ae7d4d convert the very basic UI we had to bootstrap 2016-03-30 16:00:49 -05:00
5225d2bd6b add django-registration-redux and use some of it
for the moment this is for the password change url used in the auth
dropdown, and a better login page, but this might become other stuff
eventually too. the signup page exists and is linked to, even if i don't
have a great reason for this to exist

bunch of templates added now to support the intentional and
unintentional stuff
2016-03-30 15:36:56 -05:00
e52f4c915f prospector - 'log' okay name, analyze docstrings 2016-03-02 21:43:21 -06:00
2cee918fd9 twitter: reverse the mentions list before printing 2016-01-26 23:29:26 -06:00
9d5b9e070b twitter: start/stop mention poll thread via irc
includes a migration for a new permission for this, naturally. with
this, the poll thread can be started and actually do stuff
2016-01-26 23:14:42 -06:00
3b78e9b894 twitter: method for polling mentions timeline
not stitched together in this commit, so it'll work but it won't be
started
2016-01-26 00:39:51 -06:00
6cbf5f3d96 twitter: pull the tweet reply method into two
_return_tweet_or_retweet_text used to both determine the proper tweet
text and bot.reply() with it to the provided event. if we're not
reacting to an irc event, this obviously won't work, so this pulls the
method into two things so that we can use the string formatting code
without necessary needing an event
2016-01-26 00:08:46 -06:00
e8e42cc580 twitter: replace since_id with mentions_since_id
we'll want to treat the since_ids for mentions and (theoretical)
timelines differently, i think, so might as well just set up the split
out field now
2016-01-24 18:46:06 -06:00
352ce81bc9 twitter: add field for mentions output channel
this removes an old, general field, which was once used for multiple
things, but we should break apart its functional usage and also just
refer to our IrcChannel object anyway

this is the easy half of issue #3
2016-01-24 17:50:46 -06:00
e25b3aca9d twitter: don't append colon to nick when replying
just a style thing, nbd
2016-01-17 12:37:23 -06:00
57588afbe6 dispatch: wrap exceptions in str() before format() 2016-01-17 12:11:00 -06:00
b09c20e910 twitter: wrap exceptions in str() before format()
this might also do something about #1, considering i'm also just doing
blanket except Exception:s now. fingers crossed
2016-01-17 12:04:34 -06:00
7a1c024d69 dispatch: write message to file properly in py3 2016-01-17 11:39:43 -06:00
007f9bdbc7 twitter: don't re-encode replyee name
this appears to have been whan was causing replying via twitter to fail.
let's test something while we're here:

fixes #2
2016-01-17 11:36:10 -06:00
6fe6797281 ircbot: implement !reload for plugins
in addition to being a convenient unload plugin, load plugin, this also
uses importlib.reload() to kick the interpreter to reload changed code
inside the plugin's package, if the user requests to reload the entire
package. this seems safe so far

(famous last words)
2016-01-17 10:56:39 -06:00
0ba889bf75 ircbot: _unload_plugin doesn't need connection 2016-01-17 10:52:25 -06:00
97c18a2459 ircbot: provide feedback option to _plugin_unload 2016-01-17 09:49:55 -06:00
10071f9094 ircbot: add load/unload plugin documentation 2016-01-17 09:49:30 -06:00
676f479d52 ircbot: add some debug logging in plugin (un)load 2016-01-17 09:21:29 -06:00
4c949ee6f3 ircbot: don't unload just one plugin of path
if we somehow got multiple plugins of the same path loaded, unload them
all when unloading, not just the first one we find
2016-01-17 09:20:06 -06:00
310c2aa28d markov: fake a __stop if a k1,k2 has no v
this shouldn't have happened, but i'm guessing some previous crash put
some buggy data into my database, so let's just be careful and do this.
a k1,k2 could have had any value for v, but not knowing what else to do
in this corner case, we'll just use a stop and let the caller decide
if they want to keep going
2016-01-16 23:41:46 -06:00
a243b65d1d ircbot: new auto-migration, either django or py3 2016-01-16 19:57:11 -06:00
b14152d8d5 dispatch: new auto-migration, either django or py3 2016-01-16 19:56:14 -06:00
a314809671 weather: use requests library over urllib/json 2016-01-16 19:39:33 -06:00
90d20dfe75 transform: use new py3 base64 API 2016-01-16 19:37:24 -06:00
59c593f60b transform: use codecs library for rot13 2016-01-16 19:36:51 -06:00
c3c54b9f10 ircbot: use % formatting in some debugging 2016-01-16 19:36:10 -06:00
cdde966733 ircbot: properly output exception msg to string 2016-01-16 19:34:06 -06:00
570a4e1962 twitter: don't re-encode response as utf-8 2016-01-16 19:33:03 -06:00
47a1352a0a change __unicode__()s to __str__()s 2016-01-16 18:21:46 -06:00
9112ad0ae7 convert the project via 2to3 2016-01-16 18:02:17 -06:00
f513b241d2 ircbot: force lowercase IrcChannel channel name 2015-09-17 22:55:25 -05:00
d9c39d3db9 markov: better context/target creation ex handling 2015-09-17 22:35:23 -05:00
4f17234a0a markov: force the target/context to lowercase 2015-09-17 22:35:04 -05:00
e8d57b29b2 irclib.bot: don't del sys.modules[badname]
this makes no sense to do on ImportError since that's probably why we
got here. testing, not 100% sure this is right
2015-09-17 22:23:36 -05:00
91594117bc remove deprecated TEMPLATE_DIRS setting 2015-09-17 22:23:14 -05:00