From 71f878ba65d6ae8da324eb76d905047d7b90af4b Mon Sep 17 00:00:00 2001 From: Jack Merrill Date: Sat, 19 Aug 2023 17:49:57 -0500 Subject: [PATCH] chore: production release --- Dockerfile | 2 +- fly.toml | 18 ++++++++++++++++++ internal/utils/config/config.go | 2 +- main.go | 2 +- 4 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 fly.toml diff --git a/Dockerfile b/Dockerfile index 881e1a1..9280bd6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/fly.toml b/fly.toml new file mode 100644 index 0000000..3c19646 --- /dev/null +++ b/fly.toml @@ -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"] diff --git a/internal/utils/config/config.go b/internal/utils/config/config.go index 0d7f0c2..6a8d86a 100644 --- a/internal/utils/config/config.go +++ b/internal/utils/config/config.go @@ -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" diff --git a/main.go b/main.go index 6096cfe..d6ba94a 100644 --- a/main.go +++ b/main.go @@ -101,7 +101,7 @@ func main() { Activities: []*discordgo.Activity{&activity}, Status: "online", }) - time.Sleep(10 * time.Second) + time.Sleep(1 * time.Minute) } }()