Commit Graph

1235 Commits

Author SHA1 Message Date
Brian S. Stephan 71a797e3fa countdown: add "about" to new reminder regex 2017-02-23 09:02:21 -06:00
Brian S. Stephan 75f5985d71 countdown: simpler reminders when in privmsg 2017-02-22 23:10:01 -06:00
Brian S. Stephan 48beddb580 countdown: make new reminder regex non-greedy 2017-02-22 22:25:20 -06:00
Brian S. Stephan 0c69530cf9 Merge branch 'countdown-reminders' into 'master'
Countdown reminder feedback

See merge request !16
2017-02-22 22:17:37 -06:00
Brian S. Stephan 04f11f97df countdown: provide feedback when reminder created
bss/dr.botzo!16
2017-02-22 22:15:29 -06:00
Brian S. Stephan 081648c074 Merge branch 'countdown-reminders' into 'master'
Store and report on reminders via the countdown module

See merge request !15
2017-02-22 22:11:06 -06:00
Brian S. Stephan 1bbb64618d bot: capture exceptions, try to report on them
it beats crashing, probably
2017-02-22 22:08:04 -06:00
Brian S. Stephan 9c4e0fe782 countdown: receive reminder countdowns over IRC
bss/dr.botzo#11
2017-02-22 22:07:39 -06:00
Brian S. Stephan a6c2f91dc0 add parsedatetime dep, for countdown reminders
bss/dr.botzo#11
2017-02-22 22:06:00 -06:00
Brian S. Stephan ba5369bd31 countdown: prospector docstring stuff
bss/dr.botzo#17
2017-02-22 20:40:07 -06:00
Brian S. Stephan beff6638d0 countdown: poll db for reminders, send to target
every second (!?) a new thread checks the database for reminder
countdown items that haven't been reminded about yet. when the at time
is reached, the thread sends the reminder and notes that a reminder was
sent

bss/dr.botzo#11
2017-02-22 20:39:05 -06:00
Brian S. Stephan c81d0519a0 countdown: fields for sending reminders
extending countdown items in order to have them also store reminders,
which are the same idea (an event at a time) but these are watched by
the irc bot and sent to the specified destination when the time is
reached

this adds support for configuring this, code in support of it is coming
in later commits

bss/dr.botzo#11
2017-02-22 20:32:05 -06:00
Brian S. Stephan 0666fe27e0 remove TODO, preferring gitlab issues tracker 2017-02-12 13:09:45 -06:00
Brian S. Stephan 5d5b58daa5 Merge branch 'better-multilines' into 'master'
Better multilines by adding flood protection, consolidating privmsg/reply stuff

Closes #21 and #23

See merge request !14
2017-02-12 12:04:37 -06:00
Brian S. Stephan 0ec5f8033c dispatch: code quality cleanups
bss/dr.botzo#17
2017-02-12 11:58:20 -06:00
Brian S. Stephan 015eacbe53 xmlrpc: expose IRCBot.reply, use it over privmsg
converts dispatch and the admin form to reply

closes bss/dr.botzo#21
2017-02-12 11:41:29 -06:00
Brian S. Stephan 6cb3757ef9 convert ircplugin users of privmsg to reply
bss/dr.botzo#21
2017-02-12 11:39:04 -06:00
Brian S. Stephan 23bb5cdd78 allow IRCBot.reply() to work eventless
reply() used to require an event, but all it used it for was to
determine the destination and to identify recursion. basically, strictly
only -replies-. we can make this a more robust privmsg, too, by adding
explicit_target and inferring recursion as False. this will let
basically any code currently using privmsg to use reply instead, and
benefit from multi-line and line splitting

bss/dr.botzo#21
2017-02-12 11:33:13 -06:00
Brian S. Stephan 010afd05ce add some anti-flood protection stuff
this throttles multi-line messages in a way that probably doesn't affect
the normal cases much, and scales fairly well to far longer text. for
some reason long ascii art still triggers the flood detection, but with
this code at least it happens later in the process. so, success, for
now? i can fix the ascii art at some future point if i ever hit it
practically

closes bss/dr.botzo#23
2017-02-12 10:58:18 -06:00
Brian S. Stephan 8b4f8b2545 move message splitting into IRCBot.reply()
leaves IRCBot.privmsg() pretty vanilla. this should make it clearer
which version for modules/etc to use (hint: it's reply)

bss/dr.botzo#21
2017-02-12 10:47:27 -06:00
Brian S. Stephan c8d084f9ff karma: don't create a key > len(200)
should resolve bss/dr.botzo#9
2017-02-11 18:01:44 -06:00
Brian S. Stephan d63f2896ee code quality in the karma module
bss/dr.botzo#17
2017-02-11 18:00:43 -06:00
Brian S. Stephan 8d87945107 reorder, properly navbar login/register stuff
fixes bss/dr.botzo#19
2017-02-11 17:23:59 -06:00
Brian S. Stephan dcd41516a6 link to /admin/ properly in main nav
fixes bss/dr.botzo#18
2017-02-11 17:23:42 -06:00
Brian S. Stephan c04445dfff code quality changes to the remaining scripts
bss/dr.botzo#17
2017-02-11 17:09:24 -06:00
Brian S. Stephan 23007ec8f9 give procmail-to-dispatch.py its own directory 2017-02-11 16:53:46 -06:00
Brian S. Stephan 6855fc561a remove ancient porting scripts
no one will ever need these, no need to have clutter
2017-02-11 16:52:24 -06:00
Brian S. Stephan 06aa567421 give mpd-notifications.py its own directory
updates the requirements files, too
2017-02-11 16:50:29 -06:00
Brian S. Stephan 0b4ffd271d Merge branch 'facts-choices-refactoring' into 'master'
Refactoring facts app to wrap in choices, improve admin

Closes #15 and #14

See merge request !13
2017-02-11 09:47:25 -06:00
Brian S. Stephan f608c5ab68 facts: handle line breaks in view display of fact 2017-02-11 09:41:29 -06:00
Brian S. Stephan a4d51b1f2c remove choices app, everything is in facts now
closes bss/dr.botzo#15
2017-02-11 09:37:03 -06:00
Brian S. Stephan fb04732ec3 facts: recreate the choices experience in facts
recreates the choices view in facts, allowing for display of any fact
category in the system, and providing a random item from it

bss/dr.botzo#15
2017-02-11 09:34:15 -06:00
Brian S. Stephan 368dfd4a83 facts: refactor random_fact onto FactCategory
since the views will have a FactCategory, not a Fact, we'll move the
convenience random_fact() there and use it in the FactManager

bss/dr.botzo#15
2017-02-11 09:22:32 -06:00
Brian S. Stephan 4bf0c7e260 facts: boolean to display facts items in view
carried over from the choices functionality that always does this, make
this an option for the FactCategory for when we have views

bss/dr.botzo#15
2017-02-11 09:21:18 -06:00
Brian S. Stephan 36e2de5dfd facts: provide Fact as an inline on FactCategory
closes bss/dr.botzo#14
2017-02-11 08:48:39 -06:00
Brian S. Stephan cd31bbb489 facts: code quality changes
bss/dr.botzo#17
2017-02-11 08:48:35 -06:00
Brian S. Stephan 4740cd7808 prospector: turn up strictness
let's start with some serious code quality refactoring later, but this
is at least setting the underpinnings

bss/dr.botzo#17
2017-02-11 08:48:32 -06:00
Brian S. Stephan b5c72da918 prospector: disable PEP257 D203
for whatever reason both it and D211 exist, and i'm choosing D211

bss/dr.botzo#17
2017-02-11 08:48:22 -06:00
Brian S. Stephan 8f8af4e6b4 package updates and resulting compat stuff
changes to urls.py in the django views, trivial __init__ change for the
irc library stuff

bss/dr.botzo#16
2017-02-06 22:58:51 -06:00
Brian S. Stephan 5184a30a52 update gitlab CI config for new dev requirements
bss/dr.botzo#16
2017-02-06 22:37:39 -06:00
Brian S. Stephan 517371982e server requirements.in file
compiled to match the install on kalafina, version bump comes later

bss/dr.botzo#16
2017-02-06 22:34:23 -06:00
Brian S. Stephan 8e5f0c1037 core and dev requirements.in files
compiled to match the previous requirements.txt file, version bumps come
later

bss/dr.botzo#16
2017-02-06 22:30:35 -06:00
Brian S. Stephan 4bf6d2ec13 fix word wrap, link to the wiki 2017-02-06 20:53:39 -06:00
Brian S. Stephan b450aaf5df Add contribution guide 2017-02-06 20:46:37 -06:00
Brian S. Stephan 01397814b4 add a new README.md that isn't horribly ancient 2017-02-06 20:41:50 -06:00
Brian S. Stephan 12a031aed6 mpd-not: tweak to the output format 2017-02-04 22:00:42 -06:00
Brian S. Stephan f539df064c mpd-not: enable https cert checking 2017-02-04 12:41:43 -06:00
Brian S. Stephan 07eb3aabe8 mpd-not: support mpd passwords 2017-02-04 12:41:29 -06:00
Brian S. Stephan cd23f062a9 collapsing all of dr_botzo one directory 2017-02-04 11:51:22 -06:00
Brian S. Stephan 38d14bb0d2 Merge branch 'random-from-set' into 'master'
add !random command to dice module

See merge request !11
2017-02-04 10:43:49 -06:00