Commit Graph

320 Commits

Author SHA1 Message Date
skkiesel 8735a2283b quiet down the babbler 2017-06-16 15:02:28 -04:00
cws 3607a7ee23 Merge branch 'master' of github.com:velour/catbase
* 'master' of github.com:velour/catbase:
  try to force the bridge command to give less deterministic results
  add middle out compression, I mean babbles
  update babbler syntax
2017-06-08 10:02:20 -04:00
cws 973900dd54 fact: fix syntax 2017-06-08 10:02:10 -04:00
Chris Sexton e453f740c9 Merge pull request #60 from velour/more_babbler_stuff
More babbler stuff
2017-06-08 09:59:53 -04:00
skkiesel 11c4f78bbd try to force the bridge command to give less deterministic results 2017-06-07 20:07:26 -04:00
skkiesel bd7cf6be7c add middle out compression, I mean babbles 2017-06-07 20:02:42 -04:00
skkiesel 8edba10b5d update babbler syntax 2017-06-07 20:02:18 -04:00
cws 07f5749f1a fact: add back global check 2017-06-07 14:56:14 -04:00
cws b4c0f36260 Merge branch 'fix_ownership'
* fix_ownership:
  fact: remove owner check from edit
2017-06-07 14:51:43 -04:00
cws f7bd5a8eb4 fact: remove owner check from edit 2017-06-07 14:51:26 -04:00
cws 94d373c567 Merge branch 'master' of github.com:velour/catbase
* 'master' of github.com:velour/catbase:
  Even more custom babbling... with bookends! closed #58
2017-06-07 14:46:54 -04:00
cws 59b92bdf3c fact: remove ownership check for delete 2017-06-07 14:46:34 -04:00
skkiesel 9734845146 Even more custom babbling... with bookends! closed #58 2017-06-06 20:03:07 -04:00
cws 2ebc5fe18f stats: Fix hour keys 2017-06-06 07:24:44 -04:00
cws 1d290c287e stats: fix hours bucket; standardize date format 2017-06-06 06:30:12 -04:00
cws b998347f33 stats: forgot to close the file in web serving 2017-06-06 05:57:33 -04:00
cws ae75b23252 Merge branch 'stats'
* stats:
  stats: Add a dumb URL for getting all stats from the db
  gitignore: get rid of swp files
2017-06-05 21:45:50 -04:00
cws 30789669b7 stats: Add a dumb URL for getting all stats from the db 2017-06-05 21:45:34 -04:00
Chris Sexton 1bb3f17dc1 Merge pull request #56 from velour/stats
Stats plugin
2017-06-05 21:21:24 -04:00
cws 4213243744 stats: Add a day categorization above all others 2017-06-05 21:20:08 -04:00
cws de19f6a4e9 stat: change encoding to JSON 2017-06-05 21:03:23 -04:00
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
skkiesel aaba7c5bff allow babbles to formed with suffixes (closes #55) 2017-06-05 19:53:19 -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
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
skkiesel e22890cd83 cancel reminders 2017-05-09 10:12:24 -04:00
skkiesel 3c7af6c51f batch adding of reminders for msherms 2017-05-01 11:54:44 -04:00
skkiesel b2dc49d715 reminder listing 2017-04-27 12:47:18 -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
skkiesel c8ea09fc1d allow the babbler to be seeded with a full phrase 2017-04-07 15:45:15 -04:00
skkiesel 2b9cdda019 move the specification of replacements into the config file 2017-03-13 13:44:44 -04:00
skkiesel f2309b9090 give catbase some negative back talk 2017-03-13 12:41:17 -04: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
svohr 6917e091af "Tea. Earl Grey. Hot." generalized for any tea, hot or iced. 2017-02-14 20:56:29 -08:00
cws cdb77a5119 Tea. Earl Grey. Hot. 2017-01-31 15:35:05 -05:00
cws 2957b6f4d5 Add reset me command 2017-01-23 21:13:21 -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 7a3646049c go fmt 2017-01-05 09:49:27 -05:00
Scott Kiesel a86ef4bebd stk5's wish come true 2016-10-20 06:19:59 -04:00
Chris Sexton 7b7c0dc5bb Add a ducking filter 2016-08-30 15:40:55 -04:00
Chris Sexton 2f9abf660d Merge pull request #33 from velour/feeling_twitchy
check twitch to see who is streaming
2016-08-14 17:30:41 -04:00
skiesel 5cf384e633 check twitch to see who is streaming 2016-08-08 21:15:09 -04:00
Steve McCoy 74c666fe75 Handle "remind me" 2016-08-06 21:22:03 -04:00
skiesel 3f056ee611 mergable (in memory) markov chains 2016-05-26 11:06:22 -04:00
Chris Sexton b4c26956ab Fix empty string indexing crash 2016-05-24 10:07:36 -04:00
Chris Sexton 078eea0ca3 Merge pull request #29 from velour/fixVariables
Fix variable support
2016-05-20 16:30:12 -04:00
Chris Sexton 079c6ab2ec Fix variable support 2016-05-20 16:28:48 -04:00
Chris Sexton 46deb933da Add some misc little fixes to web views and factoid timing 2016-05-17 22:19:46 -04:00
Chris Sexton b048890b05 Merge pull request #25 from velour/MarkovBabblerPlugin
do not learn from commands to the babbler
2016-05-16 12:30:40 -04:00
Ethan Burns 06eef50025 Add zork plugin. 2016-05-15 16:43:47 -04:00
skiesel b59cd6441f batch learning for the babbler 2016-05-11 13:07:16 -04:00
skiesel ac3e1da9e5 do not learn from commands to the babbler 2016-05-11 12:11:21 -04:00
Chris Sexton 19754a07a5 Change Splits to Fields where appropriate 2016-05-11 12:10:15 -04:00
Chris Sexton e4f4cae6a7 Merge pull request #24 from velour/MarkovBabblerPlugin
Markov babbler plugin
2016-05-10 21:18:15 -04:00
Chris Sexton e6324ad5a2 babbler: Add all users in chan, add cfg'd users
Also misc small updates to the mock object for easier config usage
2016-05-10 21:15:52 -04:00
skiesel 8c5a446b75 markov babbler plugin 2016-05-09 16:48:05 -04:00
skiesel cf088bf8ad remove a few debugging lines 2016-05-09 16:46:29 -04:00
skiesel a3312c7c50 miscounted tokens in reminder plugin 2016-05-09 13:27:28 -04:00
skiesel 2764410ad4 new reminder plugin 2016-05-09 13:09:17 -04:00
Chris Sexton b687078c1a Add Untappd photos 2016-05-01 16:56:58 -04:00
Chris Sexton 1e6f0474d3 Add rating score into untappd checkin comments 2016-04-24 20:07:01 -04:00
Chris Sexton 9bff7bf79a Simplify remember code a bit 2016-04-22 13:48:43 -04:00
Chris Sexton 8485ed9fe3 Fix Whoing a channel and factoid timer 2016-04-21 11:19:38 -04:00
Chris Sexton e77c082db6 Switch fact back to like matching from regexp 2016-04-15 14:48:35 -04:00
Chris Sexton d24f48862c Add corner case test, change factoid plugin name 2016-04-08 12:18:34 -04:00
Chris Sexton af6c69c9fc Fix hilariously broken factoid searching 2016-04-05 09:46:03 -04:00
Chris Sexton f2f1326a19 Config-ize factoid 2016-04-01 10:48:54 -04:00
Chris Sexton a63c22c00e Add leftpad limit 2016-04-01 10:37:44 -04:00
Chris Sexton e449a82001 YOLO: DEAL WITH IT
Refactored a bunch of junk.
2016-04-01 10:20:26 -04:00
Chris Sexton c75a52e68c Update leftpad to use JAVASCRIPT and test 2016-03-30 23:09:35 -04:00
Chris Sexton 1254754e22 Beers tests. Untappd can go to hell 2016-03-30 22:47:21 -04:00
Chris Sexton a9a2c97c56 Add talker tests 2016-03-30 19:25:02 -04:00
Chris Sexton a38a28636c Add dice tests 2016-03-30 19:11:35 -04:00
Chris Sexton ef40d335eb Make testing great again! Add examples in counter
* Made bot.Bot an interface and added a mock with an in-memory database
for plugins to use.
* Remove logger nonsense
* Rename Counter New
2016-03-30 12:41:22 -04:00
Chris Sexton a34afa97ad Switch web query to a regex 2016-03-29 12:34:04 -04:00
Chris Sexton 9d9771c097 Enable web interface 2016-03-29 10:20:44 -04:00
Chris Sexton de3aba210a Stop trying to process Untappd after it fails 2016-03-28 15:34:40 -04:00
Chris Sexton 0e69e58ff5 Fix goatse in talker
Note: This makes the goatse very Slack specific with preformatting and
newlines.
2016-03-25 15:10:56 -04:00
Chris Sexton 3cdb40ab5c Fix leftpad query 2016-03-25 12:42:21 -04:00
Chris Sexton a14a2b2e61 Yup. Leftpad. 2016-03-25 12:25:00 -04:00
Chris Sexton a829c94349 Add config values for your 2016-03-24 13:49:44 -04:00
Chris Sexton 762ec13780 Fixes #20: move plugins to their own pkgs 2016-03-24 13:32:40 -04:00
Chris Sexton 0eaadee120 Remove the beers table 2016-03-19 15:05:15 -04:00