Commit Graph

577 Commits

Author SHA1 Message Date
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 4b5b66dd6d bot: unroll args 2019-02-05 15:24:49 -05:00
Chris Sexton f661d7dca2 bot: update callback registry types
Unfortunately, we can't hash the plugins. I went ahead and hashed the
types instead.
2019-02-05 15:13:32 -05:00
Chris Sexton 5ee5f33e36 tests: refactor for new system 2019-02-05 15:02:15 -05:00
Chris Sexton 90e7b11308 plugins: add callback handler registrations 2019-02-05 14:41:38 -05:00
Chris Sexton 933e514ddd bot: switch plugins to matching instance
instead of string
2019-02-05 13:58:12 -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 d85c855d47 bot: rename a few things 2019-02-05 12:25:31 -05:00
Chris Sexton 2e20971dd1 Merge branch 'master' into events
* master:
  twitch: configerize the stream word
2019-02-05 11:41:50 -05:00
Chris Sexton 1f69a653a9 tests: refactor mock to match new interface 2019-02-05 11:37:33 -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 75d2127396
Merge pull request #140 from velour/screaming
twitch: configerize the stream word
2019-02-04 22:21:34 -05:00
Chris Sexton 0c93259c55 twitch: configerize the stream word 2019-02-04 22:17:33 -05:00
Scott Kiesel 181f243b39
Merge pull request #139 from velour/ReminderMaxList
Limit the listing pain caused by inflicting reminder pain on others
2019-01-27 16:23:46 -05:00
skkiesel 1726b83438 Limit the listing pain caused by inflicting reminder pain on others 2019-01-27 11:20:36 -10:00
Chris Sexton e161e9fece
Merge pull request #138 from velour/quiet
admin: be quiet
2019-01-25 10:09:44 -05:00
Chris Sexton 17afdda35e admin: be quiet
This will not silence any out of band messages such as Untappd checks,
Twitch notifications, or the startup message.

This will cause catbase not to know anything about the conversation,
which means quoting something during the quiet period is impossible.
Everything during quiet time is off the record.
2019-01-25 10:05:26 -05:00
Chris Sexton adb0eb9f45
emojify: add direct eq 2019-01-22 10:59:08 -05:00
Chris Sexton 2aaf18518a emojify: flipped lt 2019-01-22 10:52:28 -05:00
Chris Sexton 8795d956ff emojify: flipped lt 2019-01-22 10:51:19 -05:00
Chris Sexton ca8334c60c
Merge pull request #137 from velour/emojyless
emojify: make sure there are spaces around beginning/ending emojy
2019-01-22 10:46:43 -05:00
Chris Sexton aee106b21b emojify: make sure there are spaces around beginning/ending emojy 2019-01-22 10:43:10 -05:00
Chris Sexton 0ee92123c1
Merge pull request #136 from velour/configdefault
Configdefault
2019-01-22 08:56:40 -05:00
Chris Sexton 0c6552e854 config: whoops wrong package 2019-01-21 20:07:03 -05:00
Chris Sexton 8801dd1e8c config: remove version file 2019-01-21 19:40:21 -05:00
Chris Sexton cd0aefbb9c config: simplify the default setup 2019-01-21 19:18:46 -05:00
Chris Sexton 0593b4f164 config: set some defaults 2019-01-21 19:16:57 -05:00
Chris Sexton 52bc70cf8b
Merge pull request #135 from velour/emojifyreact
emojify: woops
2019-01-21 18:34:53 -05:00
Chris Sexton c07e612941 emojify: woops 2019-01-21 18:30:20 -05:00
Chris Sexton 0e5a275d4d
Merge pull request #134 from velour/emojifyreact
emojify: change THE ALGORITHM
2019-01-21 18:08:33 -05:00
Chris Sexton 4d188bdf20 emojify: handle plurals again 2019-01-21 18:05:35 -05:00
Chris Sexton 36320df725 emojify: change THE ALGORITHM 2019-01-21 18:00:51 -05:00
Chris Sexton 332dbc6e37
Merge pull request #133 from velour/emojifyreact
emojifyme: make it use ractions; add velour emojy
2019-01-21 17:19:00 -05:00
Chris Sexton 7a74ca0059 emojifyme: make it use ractions; add velour emojy 2019-01-21 17:15:46 -05:00
Chris Sexton dbc3b3646b
Merge pull request #132 from velour/configadmin
admin: add ability to get/set config values
2019-01-21 16:30:19 -05:00
Chris Sexton 9ea1ba68f5 admin: add ability to get/set config values
* Users cannot get/set sensitive values
* Removed example lua config file
2019-01-21 16:26:54 -05:00
Chris Sexton 396d3acec6
Merge pull request #131 from velour/configurator
Configurator
2019-01-21 15:14:45 -05:00
Chris Sexton 742c76f562 config: add defaults checking where necessary 2019-01-21 14:24:03 -05:00
Chris Sexton 15168f5db0 config: all tests passing
* Using in-memory but shared DB. ALL TESTS MUST CLEAR RELEVANT TABLES
* Removed problematic reminder test
2019-01-21 12:36:55 -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
Chris Sexton 0739ad00c4
Merge pull request #130 from velour/react
fact: add reaction type facts
2019-01-20 12:43:22 -05:00
Chris Sexton 3a7651d184 fact: add reaction type facts
If a user creates a fact with the verb <react>, catbase will try to
react with the emojy that the user specifies. It filters things with
spaces and fixes colons, but does not check if the emojy actually
exists. There will be no feedback in this case, which should probably
get fixed but meh.

* Updated mock bot to check reactions, and do filtering correctly.
* Added a couple tests of the react functionality.
2019-01-20 12:33:19 -05:00
Scott Kiesel 0d730ee08a
Merge pull request #129 from velour/nerdepeida
Add pokemon. Extra dune trigger. Actually have a test for each endpoint
2019-01-19 11:09:02 -05:00
skkiesel b33eccaaa0 Add pokemon. Extra dune trigger. Actually have a test for each endpoint 2019-01-19 11:06:13 -05:00
Chris Sexton 13c6897a0a
Merge pull request #127 from velour/testcleanup
Testcleanup
2019-01-19 10:15:10 -05:00
Chris Sexton 69f02ed077 travis: turn modules on 2019-01-19 10:08:26 -05:00
Chris Sexton 7a5cfcbe44 travis: check some new settings out 2019-01-19 10:01:51 -05:00
Chris Sexton bfe910f4db tests: rm some beers tests, add gok and fix errs 2019-01-19 09:59:53 -05:00