Lowercase the container name
All checks were successful
Build and push container image / build (push) Successful in 1m13s

This commit is contained in:
toast 2024-01-29 19:52:39 +11:00
parent d4e7dd4cc0
commit 025ee367e0
2 changed files with 3 additions and 5 deletions

View File

@ -1,7 +1,7 @@
version: '3.8'
services:
bot:
container_name: Corn-Utility
container_name: corn-utility
image: 'git.toast-server.net/toast/corn-utility:main@sha256:1a6e9eeb1ae0e82482ea0351d1dd6f31fa0699f9109a386580b624d3e6f5c2bb'
volumes:
- ./tokens.json:/home/corn-util/tokens.json:ro

View File

@ -3,13 +3,11 @@ package main
import (
botEvents "corn-util/bot/events"
"corn-util/bot/loaders"
"corn-util/bot/utils"
"os"
"os/signal"
"runtime"
"strings"
"syscall"
"time"
"github.com/disgoorg/disgo"
"github.com/disgoorg/disgo/bot"
@ -49,7 +47,7 @@ func main() {
log.Infof("Running Disgo %v & Go %v", disgo.Version, strings.TrimPrefix(runtime.Version(), "go"))
client.Rest().CreateWebhookMessage(snowflake.MustParse(loaders.TokenLoader("hookId")), loaders.TokenLoader("hookToken"), discord.WebhookMessageCreate{Content: "Container has been reloaded."}, true, 0)
go func() {
/* go func() {
ticker := time.NewTicker(30 * time.Second)
defer ticker.Stop()
for {
@ -58,7 +56,7 @@ func main() {
utils.BanRecordsSheet()
}
}
}()
}() */
s := make(chan os.Signal, 1)
signal.Notify(s, syscall.SIGINT, syscall.SIGTERM, os.Interrupt)