Commit Graph

552 Commits

Author SHA1 Message Date
Chris Sexton a4d34fc117 leftpad: update dependency 2018-12-07 08:34:25 -05:00
cws 8484ffb0e4 remove the shitty gopkg shit 2018-12-07 08:23:02 -05:00
Chris Sexton 66fa219f78 babbler: make recording new babbles _fast_
This is a hack. I am just pushing the processing off into a goroutine so
that we can return as quickly as possible from a non-event as far as the
bot's interaction with users is concerned. This is potentially harmful
if we have too many goroutines blocked writing babblers (hopefully
    sqlite is configured to be thread-safe). But if we have a bunch of
    babblers writing off to disk, it's no worse than blocking for each
    one sequentially, I guess.
2018-11-08 18:06:11 -05:00
Chris Sexton 68cb50a117 util: add some utils I had sitting around 2018-10-26 15:57:28 -04:00
Chris Sexton 4fed267911 reminder: you for real this time 2018-10-26 13:38:49 -04:00
Chris Sexton 4644f1893c reminder: accidentally a you 2018-10-26 13:31:07 -04:00
Chris Sexton 2ffbc6fb93 reminder: change the confirmation of remind me 2018-10-26 11:02:51 -04:00
Chris Sexton 03f979bde4 twitch: make things spooky 2018-10-22 16:19:03 -04:00
Chris Sexton 73f019a14a counter: change from Tea. Earl Grey. Hot. to all
Now we can say any valid counter with two more sentences and get the
Picard-alike results with counter.
2018-10-19 14:23:08 -04:00
Geoffrey Mitchell 379a7b7667
Merge pull request #113 from velour/pickin-on-msherms
How long until he notices?
2018-10-08 07:37:57 -04:00
skkiesel a9ba3135fb How long until he notices? 2018-10-07 18:54:24 -04:00
Chris Sexton 8d729f5d42 counter: make tea counter less strict 2018-10-07 08:48:13 -04:00
Chris Sexton b1a4fd2050 merge a spaced out count into one in the case of an emojy or anything with a space really 2018-09-27 22:48:11 -04:00
Steve McCoy 96a887917a Proper handling of the default pick quantity 2018-09-01 18:27:40 -04:00
Chris Sexton ce91370313
Merge pull request #109 from mccoyst/pick-a-choose
Get *slightly* serious and fix the rest of the bugs
2018-08-30 16:14:35 -04:00
Steve McCoy cafc31cfe6 Don't send the message along after a failed parse 2018-08-30 16:11:32 -04:00
Steve McCoy aa7a09937c Get *slightly* serious and fix the rest of the bugs 2018-08-30 16:05:03 -04:00
Chris Sexton 0956fd6044
Merge pull request #108 from mccoyst/pick-a-choose
Pick a choose
2018-08-30 14:34:13 -04:00
Steve McCoy fa7ed79ff6
"A" "better" "fix" 2018-08-30 14:23:19 -04:00
Steve McCoy 4cf4308ef8
Fix hilarious cat-astrophy 2018-08-30 14:20:44 -04:00
Chris Sexton 5f0b0fc3c8
Merge pull request #107 from mccoyst/pick-a-choose
I had parsing on the brain, I swear
2018-08-30 14:16:43 -04:00
Steve McCoy 254d723ecf
I had parsing on the brain, I swear 2018-08-30 14:14:52 -04:00
Chris Sexton f8dc9aa2b0
Merge pull request #106 from mccoyst/pick-a-choose
Better parsing and error-handling and output?
2018-08-30 14:09:25 -04:00
Steve McCoy 197d6861de
Missing! 2018-08-30 14:04:36 -04:00
Steve McCoy 4886cd6b9d Use literal strings for these regexps 2018-08-30 13:51:24 -04:00
Steve McCoy 80d44a144d I will not test this 2018-08-30 13:49:51 -04:00
Chris Sexton ae3750fa2a Merge branch 'ping'
* ping:
  Add a ping/pong message to slack.
2018-08-28 17:01:44 -04:00
Chris Sexton d2936961b6
Merge pull request #105 from mccoyst/pick-a-choose
This is scanf
2018-08-28 15:45:41 -04:00
Steve McCoy 807e235489
This is scanf 2018-08-28 15:43:12 -04:00
Chris Sexton 44b32819e9
Merge pull request #104 from mccoyst/pick-a-choose
I did only as catbase commanded, and made it worse
2018-08-28 15:09:15 -04:00
Steve McCoy 9d68d4bf21 I did only as catbase commanded, and made it worse 2018-08-28 15:03:54 -04:00
Chris Sexton e15122cfe9 bot: refactor all rand seeds into main.go 2018-07-23 13:00:19 -04:00
Chris Sexton ae4e28c5be Add a ping/pong message to slack.
There was an error with buffers ending in \x00 unmarshaling the message when it was short:
{"type": "pong"}

My solution was to just include a timestamp to make the message large enough to fill the
initial buffer size. Perfect.
2018-06-27 08:41:23 -04:00
Chris Sexton 01056f1956 Undo a horrible git thing 2018-06-22 14:31:33 -04:00
Chris Sexton 5d6f41db3c Fix CSW 2018-06-22 14:25:43 -04:00
Chris Sexton f116636aec
Merge pull request #103 from velour/CouldaShouldaWoulda
This might be entertaining on occasion
2018-06-22 14:02:07 -04:00
skkiesel f03fdb4d4e This might be entertaining on occasion 2018-06-16 17:25:33 -04:00
Chris Sexton c639d460ac go fmt 2018-05-02 07:02:04 -04:00
Chris Sexton f164530359 first: change time format 2018-03-28 03:29:42 -04:00
Chris Sexton 0357e59858 db: Add plugin to access DB
Can now download the database at /db/catbase.db
2018-02-22 17:41:48 -05:00
Chris Sexton 13c00394f7
Merge pull request #101 from velour/ReminderListByUser
Listing Reminders "to" or "from" a user
2018-02-05 16:15:25 -05:00
skkiesel a272df5e05 Listing by user to or from 2018-02-05 16:04:40 -05:00
Chris Sexton 02f3587f52
Merge pull request #100 from velour/counter_alias
Counter alias
2018-01-19 14:22:08 -05:00
Chris Sexton e5829899b0 beers: discard checkins with incomplete photos 2018-01-19 14:20:22 -05:00
Scott Kiesel a20c323ac9
Fixed comment 2018-01-10 11:47:50 -05:00
Chris Sexton a671534d86 beers: booze->beer 2018-01-05 16:54:12 -05:00
Chris Sexton dadb51cec5 counter: mkalias 2018-01-04 12:23:59 -05:00
Chris Sexton 4f5b0ebbda
Merge pull request #98 from velour/leaderboard
counter: add leaderboards
2018-01-04 07:41:40 -05:00
Chris Sexton e19d982fe5 counter: add leaderboards 2018-01-04 07:39:24 -05:00
Chris Sexton 22bca5bf4d picker: less strict (no command) 2017-12-19 13:42:30 -05:00