William Perron
8578a8ad15
add darwin specific uptime variant -- not implemented and never will
1 year ago
William Perron
3f93fd3ba6
small updates to Dockerfile
2 years ago
dependabot[bot]
3e2014ed68
Bump golang.org/x/crypto from 0.0.0-20210421170649-83a5a9bb288b to 0.1.0 ( #19 )
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.0.0-20210421170649-83a5a9bb288b to 0.1.0.
- [Release notes](https://github.com/golang/crypto/releases )
- [Commits](https://github.com/golang/crypto/commits/v0.1.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years 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
fb25f21472
update deps and tidy go.mod
2 years ago
William Perron
aa90a44117
smol refactors
2 years ago
William Perron
0497f10e9c
fix: get string value from sql.NullString
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
4dcbbaa226
fix lint
2 years ago
William Perron
b2d5332f67
WIP: command to run arbitrary selects
2 years ago
William Perron
bd490bc18f
make claim command case insensitive
...
Fixes #3
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
99d527f83e
fix shared db conn in tests
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
541e8691a9
Add claim details to conflicts output
...
Fixes #2
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
2a8a36058f
improve docs
2 years ago
William Perron
af2aef6825
update guild id in deployment config
2 years ago
William Perron
40b6f33ee2
add sqlite3 to Docker image
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
2f09527677
add ✨ tests ✨
2 years ago
William Perron
9ac33440fd
add claims detail
2 years ago
William Perron
8ed0806f10
add list claims and improve error handling
2 years ago
William Perron
89ad6bbe2e
add function to take claim
2 years ago
William Perron
8ecb6ed394
WIP
2 years ago
William Perron
3a8df77e46
project scaffold
2 years ago
William Perron
d29b53d007
add raw csv and fly configs
2 years ago
William Perron
37ff4f0183
Initial commit
2 years ago