Commit Graph

78 Commits

Author SHA1 Message Date
Chris Sexton b20da607bc cli: finish removing references from tests 2024-02-27 17:30:36 -05:00
Chris Sexton b4f9f902ce counter: use templ and htmx 2024-02-27 17:30:36 -05:00
Chris Sexton f83cc32788 web: refactor and convert secrets 2024-02-27 17:30:36 -05:00
Chris Sexton c44ada3061 counter: fix decrement-by 2023-10-04 10:25:59 -04:00
Chris Sexton f18154be5b counter: maybe really fix it finally 2023-10-04 10:25:59 -04:00
Chris Sexton 9cecccfcdd counter: consolidate multiple counter code 2023-10-03 10:52:27 -04:00
Chris Sexton f6cfec477f counter: fix double counter api issue 2023-10-03 09:54:59 -04:00
Chris Sexton f2153bf0b4 counter: maybe finish this feature 2023-09-29 11:01:46 -04:00
Chris Sexton 5de82d96e4 counter: maybe count some stuff better via API 2023-09-29 10:48:23 -04:00
Chris Sexton a64f4800b1 cowboy: add slash command 2022-07-23 00:22:13 -04:00
Chris Sexton b2ec081d51 counter: trim some spaces near aliases 2022-07-18 21:47:03 -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 96229c9e11 counter: change http rate limiter criteria 2022-07-17 14:46:09 -04:00
Chris Sexton 72c32e1c16 counter: fix bug where anything but the right password worked 2022-07-17 14:46:09 -04:00
Chris Sexton df0b5d709b counter: fix bug where user ID was not passed to resolveUser 2022-07-17 14:46:09 -04:00
Chris Sexton aa7d377c08 counter: update model to reflect that the ID may be null 2022-07-17 14:46:09 -04:00
Chris Sexton 60678fcad2 add rate limit middleware 2022-07-07 11:28:22 -04:00
Chris Sexton 46e61f69d0 counter: use blank ID if none found
This fixes an issue where if the user hasn't spoken since the bot
restarted, the counter can't increment.
2022-05-30 19:15:17 -04:00
Chris Sexton 32cca1497a counter: add increment by N api 2022-05-05 18:15:38 -04:00
Chris Sexton 471c3ecff4 all: update to go1.18 and any interface 2022-03-21 21:36:04 -04:00
Chris Sexton 3af3633559 web: fix vue version references
3.x came out and @latest busted everything.
2022-02-18 07:20:02 -05:00
Chris Sexton 9670e0e657 counter: reorder goal and count 2021-12-04 16:05:19 -05:00
Chris Sexton 6d004d8d1f counter: fix api and add a message when one exists 2021-11-28 14:22:22 -05:00
Chris Sexton 338293cf42 counter: use channel in api update 2021-11-18 17:21:04 -05:00
Chris Sexton fd670339c0 counter: api should update goals 2021-11-18 16:50:50 -05:00
Chris Sexton 3343a98802 pubsub: add counter pub 2021-11-15 20:51:40 -05:00
Chris Sexton 13e16c9f01 web: change to embedded pages
counter: embed counter page

admin: move vars and apppass to embedded

secrets: move to embedded

cli: move to embed

meme: move to embed

fact: move to embed

bot: move to embed

fix write command
2021-07-29 13:00:33 -04: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 c47a4f7c6f web: migrate endpoint registration to chi 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 825a8d267f goals: fix default channel reporting 2021-06-17 14:26:19 -04:00
Chris Sexton 332d992d05 counter: use IDs when available
This should help alleviate user name changes, but may not fix it
entirely. Had to update beers and goals to match an ID search.

Note: this will bust badly for IRC
2021-02-14 17:00:56 -05:00
Chris Sexton e7ec092c64 counter: update tests 2021-01-31 21:53:48 -05:00
Chris Sexton 1292eaa564 counter: refactor into regex matchers 2021-01-31 21:53:48 -05:00
Chris Sexton bbf5b27790 web: remove go template dependency
All vue pages now request `/nav` to get a JSON array of navigation
instead of relying on the Go template to have the nav built in. This
cleans up all of the crufty `{{ "{{ thing }}" }}` that was making it
hard to wriet vue.

This also paves the way to using the new Go resource embedding so that
the pages don't need to be wrapped in Go files.
2021-01-09 13:46:28 -05:00
Chris Sexton ccfdb5a715 goals: mostly done, time to try it 2020-05-26 11:41:28 -04:00
Chris Sexton b1f46d6517 goals working-ish 2020-05-26 11:41:28 -04:00
Chris Sexton d99ee28370 counter: add rmalias and some help 2020-04-20 06:22:53 -04:00
Chris Sexton 7148848f77 twitter: stop trying to filter RTs
* Also remove a %w causing warnings
2020-03-26 14:02:53 -04:00
Chris Sexton fc18fba2d8 counter: use absolute value for counter 2020-01-24 16:56:22 -05:00
Chris Sexton 7f183b4f2a counter: make matched things decrement sometimes 2020-01-21 16:29:43 -05:00
Chris Sexton b2136c1b41 counter:add unicde filter to getItem 2019-11-25 14:31:54 -05: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 ab3dac35ba web: redo factoid page; add title to counter page 2019-05-27 23:14:05 -04:00
Chris Sexton 42f7f52bfb cli: make a new plugin 2019-05-27 19:23:05 -04:00
Chris Sexton 55b2b707c1 counter: add a web interface 2019-05-27 14:27:34 -04:00
Chris Sexton a2d5d173f9 logging: switch to a logging library 2019-03-07 11:46:59 -05:00
skkiesel 1842aeba82 A new small tea-ture 2019-02-12 11:03:24 -05:00
Chris Sexton a20839cdd7 bot: Invert RegisterWeb 2019-02-07 11:30:42 -05:00