stop logging improvement

This commit is contained in:
darius 2024-05-04 13:36:37 +02:00
parent 4572e2a97e
commit 246166f417
2 changed files with 2 additions and 2 deletions

View File

@ -5,6 +5,7 @@ import (
"github.com/bwmarrin/discordgo"
"kleincordBot/services"
"log"
"os"
"time"
)
@ -51,7 +52,7 @@ func StopCommand(s *discordgo.Session, i *discordgo.InteractionCreate) {
s.ChannelMessageSendEmbed(
LogChannelID,
&discordgo.MessageEmbed{
Title: "stopped with command",
Title: "stopped " + os.Getenv("ENVIRONMENT") + " with command",
Timestamp: time.Now().Format(time.RFC3339),
})

View File

@ -14,7 +14,6 @@ func readJson() []Server {
if err != nil {
fmt.Println(err)
}
fmt.Println("Successfully Opened users.json")
defer jsonFile.Close()