Temp timezone fix #11
2 changed files with 3 additions and 3 deletions
|
|
@ -382,6 +382,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
|
|||
} else {
|
||||
s.ChannelMessageSend(m.ChannelID, "Sending Webhook set to False")
|
||||
}
|
||||
return
|
||||
}
|
||||
// Handle "!addaccount" only in guilds (not in DMs)
|
||||
if m.GuildID != "" && m.Content == "!addaccount" {
|
||||
|
|
|
|||
5
main.go
5
main.go
|
|
@ -33,8 +33,6 @@ type NamedTimetableEntry struct {
|
|||
ActivityType string `json:"activityType"`
|
||||
}
|
||||
|
||||
var WebHook = true
|
||||
|
||||
// init and main//
|
||||
func init() {
|
||||
godotenv.Load(".env")
|
||||
|
|
@ -213,7 +211,8 @@ func Run(userID string) {
|
|||
}
|
||||
|
||||
if userID == "default" {
|
||||
if WebHook {
|
||||
if BotStart.WebHook {
|
||||
log.Println("WebHook status ", BotStart.WebHook)
|
||||
sendDiscordWebhook(subject, room, nextTime, status)
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue