Chris Sexton
f83cc32788
web: refactor and convert secrets
2024-02-27 17:30:36 -05:00
Chris Sexton
c91fdcdf29
bot: add spoiler message type
2023-08-02 17:00:45 -04:00
Chris Sexton
2e0be87dd9
counter: fix ID null string regression
...
Also remove shared DB cache as it seems to not be necessary.
2022-07-17 14:46:09 -04:00
Chris Sexton
feb42b8293
emojy: allow creation and removal of emojy
...
- includes a web interface for uploading new images
- includes a web interface for viewing 'possible' images
2022-06-08 21:03:21 -04:00
Chris Sexton
471c3ecff4
all: update to go1.18 and any interface
2022-03-21 21:36:04 -04:00
Chris Sexton
3343a98802
pubsub: add counter pub
2021-11-15 20:51:40 -05:00
Chris Sexton
7ba9d94ac2
counter: add api, bot: change routes
...
* many routes changed by adding the chi router
* counter has an authenticated API to increment and decrement
2021-07-28 11:41:01 -04:00
Chris Sexton
31fe84b0ba
apppass: add password generation page
2021-07-21 09:59:43 -04:00
Chris Sexton
4c669e520f
last: create plugin
2021-04-27 12:45:52 -04:00
Chris Sexton
a6847a996f
babbler: refactor
2021-02-01 10:48:06 -05:00
Chris Sexton
0e5f7eb2d5
newsbid: refactor
2021-01-31 18:24:42 -05:00
Chris Sexton
aad4ecf143
bot: refactor callback handlers
...
New system:
* Each callback can filter for a regex
* Backwards compatability using a `.*` generic regex
* Handlers now accept a request object instead of bare arguments
All new plugins should use this new system.
2021-01-31 16:54:07 -05:00
Chris Sexton
9dbdd1f9a3
connectors: add translation layer
...
* URLs can be translated to slack/discord compatible
* Emojy have a connector-specific translation configuration
* Advent of Code plugin respects emojy and URLs
* Config can be wrapped in `` for JSON
2020-12-02 09:53:57 -05:00
Chris Sexton
c8d01029ea
admin: enforce admin status of users
2020-10-09 13:14:25 -04:00
Chris Sexton
969cbb37a1
mock: fix interface
2020-10-09 12:04:33 -04:00
Chris Sexton
12ca34006f
bot: add ability to disable plugins per channel
...
admin: use 'enable/disable plugin <name>'
2020-06-09 13:52:23 -04:00
Chris Sexton
cee267dbb8
admin: leave and come back
2020-04-29 17:48:55 -04:00
Chris Sexton
b6a89ff06a
web: use secret instead of human test
...
* Applies for services that modify data
* Anybody in the slack can ask for the daily secret
2019-06-13 10:04:06 -04:00
Chris Sexton
9ea45f0ad3
web: add a menu and redo index
...
We can add arbitrary links now with the `bot.links` config
2019-06-09 00:18:57 -04:00
Chris Sexton
42f7f52bfb
cli: make a new plugin
2019-05-27 19:23:05 -04:00
Chris Sexton
a2d5d173f9
logging: switch to a logging library
2019-03-07 11:46:59 -05:00
Chris Sexton
a20839cdd7
bot: Invert RegisterWeb
2019-02-07 11:30:42 -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
5ee5f33e36
tests: refactor for new system
2019-02-05 15:02:15 -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
1f69a653a9
tests: refactor mock to match new interface
2019-02-05 11:37:33 -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
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
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
skkiesel
1ac566c2c2
sokobass.
2017-11-02 16:32:02 -04:00
skkiesel
d9bb7ec3c0
sometimes you have an id, sometimes a message, we should support relpying to both
2017-10-31 10:16:41 -04:00
skkiesel
3009a646e6
support replies
2017-10-31 10:07:20 -04:00
skkiesel
d6c35b94ec
cleanup!
2017-10-31 09:40:03 -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
Scott Kiesel
e059b51fcf
Merge branch 'master' into emojifyme
2017-07-25 06:17:11 -04:00
skkiesel
1b09106356
Add missing methods (React and GetEmojiList) to mockbot
2017-07-25 06:15:44 -04:00
cws
d5bc4d8f45
bot: add missing mock func to fix tests
...
skiesel forgot.
2017-07-24 07:38:03 -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
Chris Sexton
e449a82001
YOLO: DEAL WITH IT
...
Refactored a bunch of junk.
2016-04-01 10:20:26 -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