Commit Graph

383 Commits

Author SHA1 Message Date
cws e1e58591ec stats: Add tests and clean a few things up
* Make statFromDB return 0 if no stats are in the DB instead of error
* Convert tests to use the assert library
* Add tests for actual messages
2017-06-05 20:54:19 -04:00
cws 95616e0fb8 stats: WIP demo of stats
* Added a plugin for stats
* Using BoltDB for ease of not screwing with SQL
** Perhaps everything should be Bolt...
* Should be relatively easy to add new stat counters:
** Create a function that makes the stat{} struct
** Add it to the list of active counters
* Should be relatively easy to add a views page later
2017-06-05 20:52:35 -04:00
Chris Sexton d623915110 Merge pull request #57 from velour/relbbab
allow babbles to formed with suffixes (closes #55)
2017-06-05 20:12:06 -04:00
skkiesel aaba7c5bff allow babbles to formed with suffixes (closes #55) 2017-06-05 19:53:19 -04:00
Chris Sexton 0f94b6203e Merge pull request #54 from velour/fix_loop
limit babble lengths... loops are not for kids
2017-05-30 21:35:10 -04:00
skkiesel df50130389 limit babble lengths... loops are not for kids 2017-05-25 15:22:58 -04:00
Chris Sexton 4fcc279433 Merge pull request #53 from velour/babbler_persist
Some sexy new features
2017-05-19 08:55:03 -04:00
skkiesel 9e56b54680 it was a disaster before, now it is less. 2017-05-17 10:06:10 -04:00
Chris Sexton 6da17f7dc1 Merge pull request #51 from velour/rss
barebones rss headline skimmer
2017-05-15 13:00:24 -04:00
Chris Sexton 995b37d9d8 Merge pull request #52 from velour/reminder_persist
back up the reminders in the database for a better msherms pestering …
2017-05-15 13:00:14 -04:00
skkiesel 64ed2bf9de back up the reminders in the database for a better msherms pestering experience 2017-05-11 12:40:59 -04:00
skkiesel 889372dcb4 add paging to rss feeds 2017-05-10 15:56:03 -04:00
skkiesel 9c39e3cd41 barebones rss headline skimmer 2017-05-10 15:19:07 -04:00
skkiesel e97ce576b8 probably not a huge memory savings, but only represent each unique word once and then reference them by their key for each babbler 2017-05-10 12:43:41 -04:00
skkiesel efde5d804d add feedback for when a seed isn't found 2017-05-10 10:11:49 -04:00
skkiesel 24f373d20f when read through the whole set of quote rows before beginning adding back into the babbler 2017-05-10 09:50:37 -04:00
skkiesel f28dabf0ba clean up and ignore empty strings when adding to the markov chain 2017-05-10 09:42:27 -04:00
skkiesel 8c98734e7e Add useful error messages when a babbler isn't found or when a user hasn't said something yet 2017-05-10 08:41:41 -04:00
Chris Sexton 419c188085 Merge pull request #50 from velour/babbler_persist
refactoring this to use a db took more time than all previous work co…
2017-05-09 20:06:48 -04:00
skkiesel de4defde1b refactoring this to use a db took more time than all previous work combined on this plugin. 2017-05-09 19:41:40 -04:00
Chris Sexton 5496b6e406 Merge pull request #49 from velour/cancel_reminder
cancel reminders
2017-05-09 10:28:01 -04:00
skkiesel e22890cd83 cancel reminders 2017-05-09 10:12:24 -04:00
Chris Sexton 167b8db82b Merge pull request #48 from velour/batch_reminders
batch adding of reminders for msherms
2017-05-02 07:58:14 -04:00
skkiesel 3c7af6c51f batch adding of reminders for msherms 2017-05-01 11:54:44 -04:00
Chris Sexton 0c867ceeb1 Merge pull request #47 from velour/reminder_listing
reminder listing
2017-04-27 12:50:46 -04:00
skkiesel b2dc49d715 reminder listing 2017-04-27 12:47:18 -04:00
Chris Sexton 3ff10ed38b Merge pull request #45 from velour/shhhh_babbler
Quiet down the babbler misses
2017-04-12 09:04:19 -04:00
skkiesel 57eb211983 Remove the responses when we think we have a babble request but there is no babbler or the babbler is empty 2017-04-12 09:02:00 -04:00
Steve McCoy 4b18459e81 Merge pull request #44 from velour/babbler_multi_seed
allow the babbler to be seeded with a full phrase
2017-04-07 15:48:07 -04:00
skkiesel c8ea09fc1d allow the babbler to be seeded with a full phrase 2017-04-07 15:45:15 -04:00
cws 022f81a1f1 slack: check for unrecoverable EOF error 2017-04-01 09:14:29 -04:00
cws d582a294a5 Update slack integration to not Fatal on bad msgs 2017-03-30 10:47:02 -04:00
Chris Sexton b0210fd240 Merge pull request #41 from velour/tea-bug
Fixed error in Tea. Earl Grey. Hot. regex, updated tests.
2017-02-20 16:48:56 -05:00
svohr 39d5dec694 Updated tea test to replace 🍵 with 🍵 2017-02-20 12:19:49 -08:00
svohr 8087f23d53 Merge branch 'master' of https://github.com/velour/catbase into tea-bug
Resolved new regex with change replacing 🍵 with 🍵
2017-02-20 12:06:30 -08:00
svohr ae3a4eee52 Fixed tea regex to fix bad matches that ended in iced
Added a test based on skiesel's quote that triggered it.
2017-02-20 11:57:12 -08:00
Chris Sexton 4f7908370f Change emoji 🍵 to 🍵 2017-02-16 16:28:45 -05:00
Chris Sexton 06adacf207 Merge pull request #40 from velour/tea-regex
"Tea. Earl Grey. Hot." generalized for any tea, hot or iced.
2017-02-16 16:18:53 -05:00
svohr 6917e091af "Tea. Earl Grey. Hot." generalized for any tea, hot or iced. 2017-02-14 20:56:29 -08:00
cws c82d32e460 Merge branch 'tea'
* tea:
  Tea. Earl Grey. Hot.
2017-01-31 15:38:54 -05:00
cws cdb77a5119 Tea. Earl Grey. Hot. 2017-01-31 15:35:05 -05:00
Chris Sexton 0e0878ec90 Merge pull request #39 from velour/resetme
Add reset me command
2017-01-23 21:14:02 -05:00
cws 2957b6f4d5 Add reset me command 2017-01-23 21:13:21 -05:00
Chris Sexton a3c73130af Merge pull request #38 from mccoyst/enhanced-math
This looks like += and -=
2017-01-23 10:13:19 -05:00
Steve McCoy c261b53ae6 Fix obvious problems 2017-01-23 10:10:54 -05:00
Steve McCoy 10beb0a34f This looks like += and -= 2017-01-17 17:57:39 -05:00
cws 38a321f231 Mix username and user since slack sucks 2017-01-05 10:04:44 -05:00
cws 1874f43e6c disable twitch 2017-01-05 09:49:47 -05:00
cws 7a3646049c go fmt 2017-01-05 09:49:27 -05:00
cws ef0afc2ee0 Fix detection of users on incoming messages 2017-01-05 09:48:57 -05:00