Ignore not important stuff
This commit is contained in:
		
							
								
								
									
										11
									
								
								app/bot.go
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								app/bot.go
									
									
									
									
									
								
							@ -106,6 +106,10 @@ func (app *Bot) onReady(s *discordgo.Session, r *discordgo.Ready) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (app *Bot) onEventCreate(s *discordgo.Session, r *discordgo.GuildScheduledEventCreate) {
 | 
					func (app *Bot) onEventCreate(s *discordgo.Session, r *discordgo.GuildScheduledEventCreate) {
 | 
				
			||||||
 | 
						if r.GuildID != app.guildID {
 | 
				
			||||||
 | 
							return
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	event := &Event{}
 | 
						event := &Event{}
 | 
				
			||||||
	event.Name = r.Name
 | 
						event.Name = r.Name
 | 
				
			||||||
	event.OrganizerID = r.CreatorID
 | 
						event.OrganizerID = r.CreatorID
 | 
				
			||||||
@ -135,6 +139,9 @@ func (app *Bot) onEventCreate(s *discordgo.Session, r *discordgo.GuildScheduledE
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (app *Bot) onEventDelete(s *discordgo.Session, r *discordgo.GuildScheduledEventDelete) {
 | 
					func (app *Bot) onEventDelete(s *discordgo.Session, r *discordgo.GuildScheduledEventDelete) {
 | 
				
			||||||
 | 
						if r.GuildID != app.guildID {
 | 
				
			||||||
 | 
							return
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Create Event Object
 | 
						// Create Event Object
 | 
				
			||||||
	event := &Event{}
 | 
						event := &Event{}
 | 
				
			||||||
@ -156,6 +163,9 @@ func (app *Bot) onEventDelete(s *discordgo.Session, r *discordgo.GuildScheduledE
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (app *Bot) onEventUpdate(s *discordgo.Session, r *discordgo.GuildScheduledEventUpdate) {
 | 
					func (app *Bot) onEventUpdate(s *discordgo.Session, r *discordgo.GuildScheduledEventUpdate) {
 | 
				
			||||||
 | 
						if r.GuildID != app.guildID {
 | 
				
			||||||
 | 
							return
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Create Event Object
 | 
						// Create Event Object
 | 
				
			||||||
	event := &Event{}
 | 
						event := &Event{}
 | 
				
			||||||
@ -176,6 +186,7 @@ func (app *Bot) onEventUpdate(s *discordgo.Session, r *discordgo.GuildScheduledE
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (app *Bot) onEventComplete(s *discordgo.Session, event *Event) {
 | 
					func (app *Bot) onEventComplete(s *discordgo.Session, event *Event) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	channel_name := event.GetChannelName()
 | 
						channel_name := event.GetChannelName()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if app.archiveCategoryID != "" {
 | 
						if app.archiveCategoryID != "" {
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user