chore: production release

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

View File

@ -31,7 +31,7 @@ RUN GOOS=linux go build ./main.go
##### Stage 2 #####
### Define the running image
FROM scratch
FROM scratch as runner
### Alternatively to 'FROM scratch', use 'alpine':
# FROM alpine:3.13.1

18
fly.toml Normal file
View File

@ -0,0 +1,18 @@
# fly.toml app configuration file generated for hampbot on 2023-08-19T17:40:32-05:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = "hampbot"
primary_region = "bos"
[build]
build-target = "runner"
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = false
auto_start_machines = true
min_machines_running = 1
processes = ["app"]

View File

@ -15,7 +15,7 @@ var (
var (
// BotPrefix is the prefix used for bot commands.
BotPrefix = ">"
BotPrefix = "!"
// BotGuild is the ID of the guild the bot is running on.
BotGuild = "936651575684915201"

View File

@ -101,7 +101,7 @@ func main() {
Activities: []*discordgo.Activity{&activity},
Status: "online",
})
time.Sleep(10 * time.Second)
time.Sleep(1 * time.Minute)
}
}()