stop logging improvement
This commit is contained in:
parent
4572e2a97e
commit
246166f417
@ -5,6 +5,7 @@ import (
|
|||||||
"github.com/bwmarrin/discordgo"
|
"github.com/bwmarrin/discordgo"
|
||||||
"kleincordBot/services"
|
"kleincordBot/services"
|
||||||
"log"
|
"log"
|
||||||
|
"os"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -51,7 +52,7 @@ func StopCommand(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
|||||||
s.ChannelMessageSendEmbed(
|
s.ChannelMessageSendEmbed(
|
||||||
LogChannelID,
|
LogChannelID,
|
||||||
&discordgo.MessageEmbed{
|
&discordgo.MessageEmbed{
|
||||||
Title: "stopped with command",
|
Title: "stopped " + os.Getenv("ENVIRONMENT") + " with command",
|
||||||
Timestamp: time.Now().Format(time.RFC3339),
|
Timestamp: time.Now().Format(time.RFC3339),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,6 @@ func readJson() []Server {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
fmt.Println("Successfully Opened users.json")
|
|
||||||
|
|
||||||
defer jsonFile.Close()
|
defer jsonFile.Close()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user