Commit Graph

79 Commits

Author SHA1 Message Date
Chris Sexton a1e170aa40 slackApp: stop racing to serve on the http port 2019-02-07 14:45:59 -05:00
Chris Sexton 980b079bf3 slackApp: create new connector for an app
* Using a library because I'm lazy.
* Fixed a few noisy things in Twitch and Untappd
* Moved connectors to a common place
2019-02-05 22:52:49 -05:00
Chris Sexton a25d7b9eff bot: get rid of a string
I introduced reflection earlier. I may as well go whole hog now.
2019-02-05 16:10:36 -05:00
Chris Sexton 287c26440e emojify: don't chomp up the rest of the pipeline
added bonus fix
2019-02-05 16:02:00 -05:00
Chris Sexton 82dcf410f2 bot: hook connectors up to events
This includes a full test of `admin`
2019-02-05 13:42:15 -05:00
Chris Sexton 3620208f33 irc: Update IRC connector to new structure 2019-02-05 11:20:43 -05:00
Chris Sexton e7c88c0c9c events: refactor
Combining all of the various send/recv functions into one
2019-02-05 10:54:13 -05:00
Chris Sexton 0593b4f164 config: set some defaults 2019-01-21 19:16:57 -05:00
Chris Sexton 742c76f562 config: add defaults checking where necessary 2019-01-21 14:24:03 -05:00
Chris Sexton a8d0f3fd34 stats: remove unused plugin
config: checkpoint

config: checkpoint all but two tests passing

config: checkpoint all but one test suites pass
2019-01-21 12:36:56 -05:00
skkiesel 0663c85b98 Up your nerd game, nerd. 2019-01-18 19:57:17 -05: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 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 5d6f41db3c Fix CSW 2018-06-22 14:25:43 -04:00
skkiesel f03fdb4d4e This might be entertaining on occasion 2018-06-16 17:25:33 -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 132fdd29be picker: add new plugin 2017-12-19 13:37:47 -05:00
Chris Sexton 1a420c1738 tell: create tell plugin 2017-11-16 17:06:48 -05:00
Chris Sexton 827879b72d sisyphus: add plugin 2017-11-03 19:03:19 -04:00
Scott Kiesel 34e2404e8b hacked poc for edits as an animation mechanism 2017-10-31 06:22:36 -04:00
cws 9600e0dc63 inventory: initial sketch
Fixes #2
2017-09-29 00:58:21 -04:00
cws 403c6dae0a twitch: update to current API
* Added OAuth abilities
* Added full API spec for endpoint response
* Use net/url to build request
2017-09-27 14:47:16 -04:00
Chris Sexton 0220b8f266 main: fix flags to default to config.lua 2017-09-07 00:38:41 -04:00
cws e56604f507 bot: change serve() to return an error
slack: don't fatal on EOF, reconnect
irc: don't fatal, just return error
2017-09-07 00:32:53 -04:00
cws 19578f7147 first: re-enable 2017-08-18 05:59:46 -04:00
skkiesel c6e1769f0f Parse incoming messages to see if we can annoy eaburns with emoji word replacements 2017-07-24 15:09:27 -04:00
skkiesel 8728d96639 initial implementation and POC to getting reactions pushed into slack via catbase 2017-06-17 16:20:06 -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 9c39e3cd41 barebones rss headline skimmer 2017-05-10 15:19:07 -04:00
cws 1874f43e6c disable twitch 2017-01-05 09:49:47 -05:00
skiesel 5cf384e633 check twitch to see who is streaming 2016-08-08 21:15:09 -04:00
Ethan Burns 06eef50025 Add zork plugin. 2016-05-15 16:43:47 -04:00
skiesel 8c5a446b75 markov babbler plugin 2016-05-09 16:48:05 -04:00
skiesel 2764410ad4 new reminder plugin 2016-05-09 13:09:17 -04:00
cwsexton ebea6df461 Re-enable counter plugin 2016-04-04 10:33:32 -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 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 a14a2b2e61 Yup. Leftpad. 2016-03-25 12:25:00 -04:00
Chris Sexton 762ec13780 Fixes #20: move plugins to their own pkgs 2016-03-24 13:32:40 -04:00
Chris Sexton ae5d7dec2e Migrate to sqlx; modularize counters 2016-03-19 14:02:46 -04:00
Chris Sexton dc1239783e Initial slack worky worky 2016-03-10 21:11:52 -05:00
Chris Sexton 51d7f7f067 Move IRC stuff to its own package 2016-03-10 13:37:07 -05:00
Chris Sexton 74e981eedf Fix imports; Use SSL by default
Fix imports to point to github instead of code.google
2016-01-17 22:51:11 -05:00
Chris Sexton d261fcc406 AlePale -> Catbase => velour 2016-01-17 13:00:44 -05:00
Chris Sexton 1d62e6173f Migrate remember to SQL 2016-01-17 12:45:21 -05:00
Chris Sexton c91f4a8535 Migrate factoids to SQL 2016-01-17 10:29:30 -05:00
Chris Sexton 72b71de10e Convert downtime to SQL 2016-01-15 13:37:54 -05:00
Chris Sexton 92e1ea5d42 Update first plugin for SQL 2016-01-15 11:54:09 -05:00
Chris Sexton 782d074bdf Get the bot online; make counters work
Mostly just silly stuff to get everything working.
2016-01-15 08:59:51 -05:00