William Perron
e766208a95
Add absences table and basic queries
...
* Add migration scripts
* Add queries to add, get and list absences
* Add tests for the above
* Add function to get the date of the next Monday
Also fixes potential bug in the build where the output binary would be
written to a file called `./bin` rather than a file named after the
source directory in a _directory_ called `./bin`.
1 year ago
William Perron
aaf569cb69
add golang-migrate
1 year ago
William Perron
c454b92d41
Rename /ping to /info
...
Related to #17
Renames the `/ping` command to `/info` and adds the following
information to the Discord response
* Uptime of the server
* Total number of claims currently held
* Total number of unique players holding claims
2 years ago
William Perron
5793278523
add query context with timeline
...
Also change the row column types to sql.NullString to handle cases where
null values were causing errors in row scanning.
2 years ago
William Perron
b2d5332f67
WIP: command to run arbitrary selects
2 years ago
William Perron
ad22f31bcd
add CI workflow
...
* silence lint errors in certain errchecks
* golangci-lint: skip go installation step
* silence lint error in ResponseWriter Write call
Fixes #13
2 years ago
William Perron
679b4136c8
Logging improvements
...
* add zerolog and update existing log references
* add log messages on operation failures
Fixes #14
2 years ago
William Perron
955a2648dd
Add flush command
...
Fixes #8
2 years ago
William Perron
9e63f05ebc
Add describe-claim command
...
Fixes #5
2 years ago
William Perron
84df9458be
Add userid column to claims table
...
Fixes #11
2 years ago
William Perron
c2d8cf2b83
validate that both parameters are present for claim
...
Fixes #1
2 years ago
William Perron
0f9668704d
add `delete-claim` command ( #12 )
...
Closes #9
2 years ago
William Perron
702f3c9da3
add autocomplete for the claim function
2 years ago
William Perron
da2cf94abf
use environment variable to inject discord app ID and guild ID
2 years ago
William Perron
14cfed1b98
set up litestream replication
2 years ago
William Perron
7cdf847738
add Dockerfile and update fly configs
2 years ago
William Perron
3fdd07092e
respond with list of conflicting provinces
2 years ago
William Perron
ed2dcc1969
format claims list as table
2 years ago
William Perron
601aa1076b
working version of Discord app
2 years ago
William Perron
3a8df77e46
project scaffold
2 years ago