William Perron
66a0fd92b7
add fly detector to otel setup
9 months ago
William Perron
96df84736b
mark some responses as ephemeral and enable cpu profiling
9 months ago
William Perron
d52efdce94
fix lints and update logger
9 months ago
William Perron
a46de17b7c
refactor discord command span in its own middleware
10 months ago
William Perron
6b99919dd7
fix context TODO usage in main.go
10 months ago
William Perron
e95f741820
bump sqliteexporter dependency and improve error handling for init tracing
10 months ago
William Perron
3e8d49c0c0
add service name attribute and fix context for flush
10 months ago
William Perron
6b280e7b33
finish instrumenting with opentelemetry
10 months ago
William Perron
cc45c55922
instrumented absences with opentelemetry
10 months ago
William Perron
27567d16a2
convert to opentelemetry part 1
10 months ago
William Perron
1646762081
wip: refactor command logging and tracing
10 months ago
William Perron
4c09153756
wip: implement embedded distributed tracing
10 months ago
William Perron
31f2813192
fix scheduled message emoji error
11 months ago
William Perron
60c5430594
add doc comment
11 months ago
William Perron
008d025fa0
apply correlation IDs to modal submits and message actions
11 months ago
William Perron
0a9cc8d7e0
add correlation IDs and propagate ctx
11 months ago
William Perron
b287a95c31
fix bug in logging middleware
11 months ago
William Perron
07252229e0
add interactive button to cancel last minute
11 months ago
William Perron
b292db1050
refactor command logging middleware
11 months ago
William Perron
a38c27ded2
add debug info for each command with total latency
11 months ago
William Perron
3d670c420d
optimize discord command registration for faster startup and shutdown
11 months ago
William Perron
c1d5e472f2
add last flush to /info command
11 months ago
William Perron
5cbaff0820
improve logging, use console writer
11 months ago
William Perron
b040694c2a
add basic audit log
12 months ago
William Perron
638083a755
Add absences feature set
...
## 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`.
## Add /schedule command
Adds the Discord slash command to get the schedule for the next few
weeks.
Also updates the required Go version to 1.21 to benefit from the new
`time.DateOnly` format that's gonna be used in the absences table.
## Add scheduled message every Saturday 5pm
Adds the `notify.go` file which manages the scheduling of the recurrent
message that will ping the group every week about the following game.
## Add /absent command
Adds command to register as absent for a specific date. The command
takes in one optional parameter for the date, if none is specified,
defaults to the next session.
12 months 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