handler

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAttendees

func NewAttendees(attendeeStr string) []*calendar.EventAttendee

NewAttendees will construct a google calendar attendees which will be registered to CalendarHandler

func NewCalendarClient

func NewCalendarClient(filePath, devEmail string) *calendar.Service

NewCalendarClient will construct a google calendar client which will be registered to CalendarHandler

Types

type Handler

type Handler interface {
	// Meet Function Interface
	Meet(s *discordgo.Session, m *discordgo.MessageCreate) (bool, string, error)
}

Handler Interface

func NewCalendarHandler

func NewCalendarHandler(client *calendar.Service, attendees []*calendar.EventAttendee) Handler

NewCalendarHandler will construct a handler to call the Meet method

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL