improved command structure a bit more

This commit is contained in:
2024-02-19 23:06:22 +01:00
parent 9001c734ae
commit 17f6150a30
5 changed files with 88 additions and 49 deletions

View File

@@ -49,7 +49,7 @@ func main() {
}
fmt.Printf("Bot is now running as \"%s\"!", discord.State.User.Username)
sc := make(chan os.Signal, 1)
signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM, os.Interrupt, os.Kill)
signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM, os.Interrupt)
<-sc
fmt.Println("\nShutting down...")
defer removeCommandFromAllGuilds(discord)