Lowercase the container name
All checks were successful
Build and push container image / build (push) Successful in 1m13s
All checks were successful
Build and push container image / build (push) Successful in 1m13s
This commit is contained in:
parent
d4e7dd4cc0
commit
025ee367e0
@ -1,7 +1,7 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
services:
|
services:
|
||||||
bot:
|
bot:
|
||||||
container_name: Corn-Utility
|
container_name: corn-utility
|
||||||
image: 'git.toast-server.net/toast/corn-utility:main@sha256:1a6e9eeb1ae0e82482ea0351d1dd6f31fa0699f9109a386580b624d3e6f5c2bb'
|
image: 'git.toast-server.net/toast/corn-utility:main@sha256:1a6e9eeb1ae0e82482ea0351d1dd6f31fa0699f9109a386580b624d3e6f5c2bb'
|
||||||
volumes:
|
volumes:
|
||||||
- ./tokens.json:/home/corn-util/tokens.json:ro
|
- ./tokens.json:/home/corn-util/tokens.json:ro
|
||||||
|
6
main.go
6
main.go
@ -3,13 +3,11 @@ package main
|
|||||||
import (
|
import (
|
||||||
botEvents "corn-util/bot/events"
|
botEvents "corn-util/bot/events"
|
||||||
"corn-util/bot/loaders"
|
"corn-util/bot/loaders"
|
||||||
"corn-util/bot/utils"
|
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"runtime"
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
|
||||||
|
|
||||||
"github.com/disgoorg/disgo"
|
"github.com/disgoorg/disgo"
|
||||||
"github.com/disgoorg/disgo/bot"
|
"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"))
|
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)
|
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)
|
ticker := time.NewTicker(30 * time.Second)
|
||||||
defer ticker.Stop()
|
defer ticker.Stop()
|
||||||
for {
|
for {
|
||||||
@ -58,7 +56,7 @@ func main() {
|
|||||||
utils.BanRecordsSheet()
|
utils.BanRecordsSheet()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}()
|
}() */
|
||||||
|
|
||||||
s := make(chan os.Signal, 1)
|
s := make(chan os.Signal, 1)
|
||||||
signal.Notify(s, syscall.SIGINT, syscall.SIGTERM, os.Interrupt)
|
signal.Notify(s, syscall.SIGINT, syscall.SIGTERM, os.Interrupt)
|
||||||
|
Reference in New Issue
Block a user