Temp timezone fix #11

Merged
Jannover5000r merged 22 commits from temp-timezoneFix into main 2026-08-23 00:02:29 +02:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 4d04da7f78 - Show all commits

View file

@ -382,6 +382,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
} else { } else {
s.ChannelMessageSend(m.ChannelID, "Sending Webhook set to False") s.ChannelMessageSend(m.ChannelID, "Sending Webhook set to False")
} }
return
} }
// Handle "!addaccount" only in guilds (not in DMs) // Handle "!addaccount" only in guilds (not in DMs)
if m.GuildID != "" && m.Content == "!addaccount" { if m.GuildID != "" && m.Content == "!addaccount" {

View file

@ -33,8 +33,6 @@ type NamedTimetableEntry struct {
ActivityType string `json:"activityType"` ActivityType string `json:"activityType"`
} }
var WebHook = true
// init and main// // init and main//
func init() { func init() {
godotenv.Load(".env") godotenv.Load(".env")
@ -213,7 +211,8 @@ func Run(userID string) {
} }
if userID == "default" { if userID == "default" {
if WebHook { if BotStart.WebHook {
log.Println("WebHook status ", BotStart.WebHook)
sendDiscordWebhook(subject, room, nextTime, status) sendDiscordWebhook(subject, room, nextTime, status)
} }
} else { } else {