This commit is contained in:
Jack Merrill 2023-08-21 17:26:31 -05:00
parent 71f878ba65
commit 1c6162962f
No known key found for this signature in database
GPG Key ID: B8E3CDF57DD80CA5
3 changed files with 7 additions and 4 deletions

View File

@ -10,9 +10,7 @@ primary_region = "bos"
build-target = "runner"
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = false
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 1
processes = ["app"]

View File

@ -24,7 +24,7 @@ type Machine struct {
Name string `json:"name"`
Type MachineType `json:"type"`
Status string `json:"status"`
Time *time.Time `json:"time"`
Time *string `json:"time"`
EstimatedTime *time.Time `json:"estimatedTime"`
}

View File

@ -12,6 +12,7 @@ import (
studentlife "github.com/jackmerrill/hampbot/internal/commands/studentlife"
util "github.com/jackmerrill/hampbot/internal/commands/util"
"github.com/jackmerrill/hampbot/internal/utils/config"
"github.com/jackmerrill/hampbot/internal/utils/embed"
"github.com/zekroTJA/shireikan"
"github.com/charmbracelet/log"
@ -46,6 +47,10 @@ func main() {
InvokeToLower: true,
UseDefaultHelpCommand: true,
OnError: func(ctx shireikan.Context, typ shireikan.ErrorType, err error) {
ctx.GetSession().ChannelMessageSendComplex(ctx.GetChannel().ID, &discordgo.MessageSend{
Embed: embed.NewErrorEmbed(ctx).SetTitle("Error").SetDescription(err.Error()).MessageEmbed,
Reference: ctx.GetMessage().Reference(),
})
log.Error(err)
},
})