func acceptInvite(s *discordgo.Session) error { var err error c := config.Get() //time.Sleep(1 * time.Second) if c.InviteID != "" { log.Debugf("Attempting to accept invite: %s", c.InviteID) _, err = s.InviteAccept(c.InviteID) } else { log.Debug("No DIGO_INVITE_ID specified, no invite to accept.") } return err }