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
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
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
Chris Sexton
90e7b11308
plugins: add callback handler registrations
2019-02-05 14:41:38 -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
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
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
Chris Sexton
dadb51cec5
counter: mkalias
2018-01-04 12:23:59 -05:00
Chris Sexton
e19d982fe5
counter: add leaderboards
2018-01-04 07:39:24 -05:00
skkiesel
54b83cd444
listening to thread responses to rpg threads only
2017-10-31 14:14:45 -04:00
cws
148f9635a0
counter: Change regex to be more accepting
...
Fixes #66
2017-07-24 07:40:13 -04:00
svohr
8087f23d53
Merge branch 'master' of https://github.com/velour/catbase into tea-bug
...
Resolved new regex with change replacing 🍵 with 🍵
2017-02-20 12:06:30 -08:00
svohr
ae3a4eee52
Fixed tea regex to fix bad matches that ended in iced
...
Added a test based on skiesel's quote that triggered it.
2017-02-20 11:57:12 -08:00
Chris Sexton
4f7908370f
Change emoji 🍵 to 🍵
2017-02-16 16:28:45 -05:00
svohr
6917e091af
"Tea. Earl Grey. Hot." generalized for any tea, hot or iced.
2017-02-14 20:56:29 -08:00
cws
cdb77a5119
Tea. Earl Grey. Hot.
2017-01-31 15:35:05 -05:00
cws
2957b6f4d5
Add reset me command
2017-01-23 21:13:21 -05:00
Steve McCoy
c261b53ae6
Fix obvious problems
2017-01-23 10:10:54 -05:00
Steve McCoy
10beb0a34f
This looks like += and -=
2017-01-17 17:57:39 -05:00
Chris Sexton
19754a07a5
Change Splits to Fields where appropriate
2016-05-11 12:10:15 -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
Chris Sexton
15602defbc
Merge branch 'counterstuff'
...
* counterstuff:
Fix #19 : Merge beers and counters
Migrate to sqlx; modularize counters
Move counter to its own package
Fix a few minor govet issues
2016-03-19 14:30:22 -04:00
Chris Sexton
6938efc430
Fix #19 : Merge beers and counters
2016-03-19 14:27:02 -04:00
Chris Sexton
ae5d7dec2e
Migrate to sqlx; modularize counters
2016-03-19 14:02:46 -04:00
Chris Sexton
28ccc4f0c2
Move counter to its own package
2016-03-19 11:44:27 -04:00