stop logging improvement
This commit is contained in:
parent
4572e2a97e
commit
246166f417
@ -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),
|
||||
})
|
||||
|
||||
|
||||
@ -14,7 +14,6 @@ func readJson() []Server {
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
fmt.Println("Successfully Opened users.json")
|
||||
|
||||
defer jsonFile.Close()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user