studentlife

package
v0.0.0-...-f8972c9 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Abbreviations = map[string]string{
	"APL":    "Airport Lounge",
	"ASH":    "Adele Simmons Hall",
	"BOT":    "Board of Trustees",
	"CAPES":  "Community Advocacy, Prevention and Education, Safety",
	"CASA":   "Center for Academic Support and Advising",
	"CC":     "Cultural Center (short for Lebrón-Wiggins-Pran Cultural Center)",
	"CFF":    "Center for Feminisms",
	"CMC":    "Collaborative Modeling Center",
	"CoCo":   "Community Commons (located in the library—off of the Airport Lounge, and formerly called the Knowledge Commons)",
	"CRB":    "Community Review Board",
	"CTL":    "Center for Teaching and Learning in Cole Science Center on the 1st Floor",
	"DLR":    "Dakin Living Room (inside Dakin Student Life Center)",
	"DSLC":   "Dakin Student Life Center",
	"EDH":    "Emily Dickinson Hall",
	"ELC":    "Early Learning Center",
	"ELH":    "East Lecture Hall (room in Franklin Patterson Hall)",
	"CEPC":   "Curriculum and Educational Policy Committee",
	"ESSP":   "Environmental Studies and Sustainability Program",
	"FPH":    "Franklin Patterson Hall",
	"FPV":    "Film, Photography, and Video Program",
	"G":      "Greenwich and Enfield Houses (one shared office)",
	"E":      "Greenwich and Enfield Houses (one shared office)",
	"GEO":    "Global Education Office",
	"HCFC":   "Hampshire College Farm Center",
	"HCSU":   "Hampshire College Student Union",
	"HLP":    "Holistic Learning Program",
	"IDBM":   "Identity-Based Mod/Hall",
	"IDBH":   "Identity-Based Hall",
	"RLSE":   "Residence Life and Student Engagement",
	"HR":     "Human Resources",
	"HRP":    "Hampshire Research Project",
	"ISS":    "International Student Services",
	"IT":     "Information Technology",
	"JEA":    "Justice, Equity, and Antiracism",
	"JLC":    "Jerome Liebling Center for Film, Photography, and Video",
	"KERN":   "The R.W. Kern Center",
	"LC":     "Learning Collaborative",
	"MDB":    "Music and Dance Building",
	"MLR":    "Merrill Living Room (inside Merrill Student Life Center)",
	"NSE":    "New Student Experience",
	"OARS":   "Office of Accessibility Resources and Services",
	"OPRA":   "Outdoor Programs, Recreation, and Athletics",
	"PAWSS":  "Peace and World Security Studies",
	"QCAC":   "Queer Community Alliance Center",
	"RCC":    "Robert Crown Center",
	"SAC":    "Staff Advocacy Committee",
	"SOURCE": "Students of Under-Represented Cultures and Ethnicities",
	"SPARC":  "Supporting Your Purpose through Action, Resources, and Connections (formerly CORC = Career Options Resource Center)",
	"WLH":    "West Lecture Hall (room in Franklin Patterson Hall)",
}
View Source
var LOCATIONS = Location{
	"^(kern|kern kafe|kern cafe|kern center|r\\.w\\. kern center|rw kern center|admissions|financial aid|finaid)$": []float64{42.325490, -72.530425},
	"^(bridge|bridge cafe|the bridge)$": []float64{42.32560055268511, -72.53171782489403},
	"^(rcc|robert crown center|gym)$":   []float64{42.3259021736783, -72.53138568980566},
	"^(library|harold f. johnson library center|mail room|post office|hampstore|hamp store|campus store|duplications|it|art gallery|hampshire college art gallery|sparc|diagnostic center|media services)$": []float64{42.325503815980404, -72.53234665636477},
	"^(cole|the cole|cole science center|csc)$": []float64{42.325005132910455, -72.53264274547023},
	"^(mixed nuts)$":                               []float64{42.32438520935449, -72.53314741618625},
	"^(prescott|cff|qcac)$":                        []float64{42.32370121438042, -72.53400755941487},
	"^(prescott tavern|tavern)$":                   []float64{42.32330551141666, -72.53410313088433},
	"^(c4d|center for design|lemelson building)$":  []float64{42.323653164859145, -72.53277277596145},
	"^(central records|casa)$":                     []float64{42.32400565840685, -72.53267685200223},
	"^(arts barn|art barn|art)$":                   []float64{42.323484930985096, -72.53270230871183},
	"^(jlc|jerome liebling center)$":               []float64{42.32343637951593, -72.53186281901529},
	"^(solar canopy)$":                             []float64{42.3231160046793, -72.5323111913881},
	"^(music and dance building|mdb|music|dance)$": []float64{42.32296880488658, -72.53257385728799},
	"^(ash|adele simmons hall)$":                   []float64{42.32286199484466, -72.53189407069387},
	"^(carle|the carle|the eric carle museum|the eric carle museum of picture book art)$": []float64{42.32109682435725, -72.53332586596198},
	"^(elc|early learning center)$":                          []float64{42.32130800774271, -72.53485513102083},
	"^(multisport center|multisport|weight room|msc)$":       []float64{42.32138500151223, -72.53614340300827},
	"^(dakin student life center|dslc)$":                     []float64{42.32313128927387, -72.53022445236283},
	"^(merrill student life center|mslc)$":                   []float64{42.32347857352905, -72.53034306624653},
	"^(merrill pavillion|pavillion)$":                        []float64{42.323322471247494, -72.53030510980373},
	"^(dakin|hell|dakin house)$":                             []float64{42.322597743840625, -72.53027825479788},
	"^(merrill|merrill house)$":                              []float64{42.323732718386175, -72.52977892147766},
	"^(dining commons|dc|saga)$":                             []float64{42.32319356233955, -72.52917576638322},
	"^(yiddish book center|ybc)$":                            []float64{42.32175452980474, -72.5276151025249},
	"^(franklin patterson hall|fph)$":                        []float64{42.324221538083805, -72.5306271019939},
	"^(the yurt|yurt|radio)$":                                []float64{42.324071744881785, -72.53136719263956},
	"^(enfield|enfield mods|enfield house)$":                 []float64{42.32646094303269, -72.52929170510444},
	"^(wellness center)$":                                    []float64{42.32709812095117, -72.5291661607627},
	"^(spiritual life center|slc)$":                          []float64{42.32705614551552, -72.52973716786117},
	"^(edh|emily dickinson hall|theatre|theater)$":           []float64{42.327652942240896, -72.53062317253445},
	"^(writing center)$":                                     []float64{42.32780110830725, -72.53112929268784},
	"^(greenwich|greenwich mods|greenwich house)$":           []float64{42.32748781455265, -72.53192281696715},
	"^(soccer|soccer field|hampshire college soccer field)$": []float64{42.32651025401564, -72.53454675256307},
	"^(cultural center|cc|lebron-wiggins-pran cultural center|Lebrón-Wiggins-Pran Cultural Center)$": []float64{42.32487763771362, -72.5339769868106},
	"^(basketball|basketball courts|basketball court|tennis courts|tennis court)$":                   []float64{42.32557748709811, -72.53720546848393},
	"^(red barn|the red barn|barn)$": []float64{42.32642633315529, -72.52551730246282},
	"^(the hitchcock center|hitchcock center|hitchcock center for the environment)$": []float64{42.32771760017527, -72.52570886249646},
	"^(csa|farm|hampshire college farm center|hampshire college farm)$":              []float64{42.32903799744424, -72.52573139895138},
	"^(health services|hampshire college health services)$":                          []float64{42.32666929509394, -72.52524995366625},
	"^(atkins|atkins farms country market)$":                                         []float64{42.319355104827295, -72.52927125654328},
	"^(res|the res|the reservoir|reservoir)$":                                        []float64{42.317285834368995, -72.5406219720153},
}
View Source
var NotifiedMachines map[string]NotifiedMachine = make(map[string]NotifiedMachine)

Functions

func InitAll

func InitAll(ctx *discordgo.Session) error

func InitDakin

func InitDakin(ctx *discordgo.Session) error

func InitEnfield

func InitEnfield(ctx *discordgo.Session) error

func InitMerrill

func InitMerrill(ctx *discordgo.Session) error

func InitPrescott

func InitPrescott(ctx *discordgo.Session) error

func NotifyUser

func NotifyUser(ctx *discordgo.Session, userId string, machine Machine, building string, waitingFor string)

Types

type Abbreviation

type Abbreviation struct {
}

func (*Abbreviation) Exec

func (c *Abbreviation) Exec(ctx shireikan.Context) error

func (*Abbreviation) GetDescription

func (c *Abbreviation) GetDescription() string

func (*Abbreviation) GetDomainName

func (c *Abbreviation) GetDomainName() string

func (*Abbreviation) GetGroup

func (c *Abbreviation) GetGroup() string

func (*Abbreviation) GetHelp

func (c *Abbreviation) GetHelp() string

func (*Abbreviation) GetInvokes

func (c *Abbreviation) GetInvokes() []string

func (*Abbreviation) GetSubPermissionRules

func (c *Abbreviation) GetSubPermissionRules() []shireikan.SubPermission

func (*Abbreviation) IsExecutableInDMChannels

func (c *Abbreviation) IsExecutableInDMChannels() bool

type Laundry

type Laundry struct {
}

func (*Laundry) Exec

func (c *Laundry) Exec(ctx shireikan.Context) error

func (*Laundry) GetDescription

func (c *Laundry) GetDescription() string

func (*Laundry) GetDomainName

func (c *Laundry) GetDomainName() string

func (*Laundry) GetGroup

func (c *Laundry) GetGroup() string

func (*Laundry) GetHelp

func (c *Laundry) GetHelp() string

func (*Laundry) GetInvokes

func (c *Laundry) GetInvokes() []string

func (*Laundry) GetSubPermissionRules

func (c *Laundry) GetSubPermissionRules() []shireikan.SubPermission

func (*Laundry) IsExecutableInDMChannels

func (c *Laundry) IsExecutableInDMChannels() bool

type LaundryNotify

type LaundryNotify struct {
}

func (*LaundryNotify) Exec

func (c *LaundryNotify) Exec(ctx shireikan.Context) error

func (*LaundryNotify) GetDescription

func (c *LaundryNotify) GetDescription() string

func (*LaundryNotify) GetDomainName

func (c *LaundryNotify) GetDomainName() string

func (*LaundryNotify) GetGroup

func (c *LaundryNotify) GetGroup() string

func (*LaundryNotify) GetHelp

func (c *LaundryNotify) GetHelp() string

func (*LaundryNotify) GetInvokes

func (c *LaundryNotify) GetInvokes() []string

func (*LaundryNotify) GetSubPermissionRules

func (c *LaundryNotify) GetSubPermissionRules() []shireikan.SubPermission

func (*LaundryNotify) IsExecutableInDMChannels

func (c *LaundryNotify) IsExecutableInDMChannels() bool

type LaundryRoom

type LaundryRoom struct {
	ID         string    `json:"id"`
	Name       string    `json:"name"`
	NextUpdate time.Time `json:"nextUpdate"`
	LastUpdate time.Time `json:"lastUpdate"`

	Machines []Machine `json:"machines"`
	// contains filtered or unexported fields
}

type Location

type Location map[string][]float64

string is the name of the building in regex, []float64 is the lat/long

type Machine

type Machine struct {
	Name          string      `json:"name"`
	Type          MachineType `json:"type"`
	Status        string      `json:"status"`
	Time          *string     `json:"time"`
	EstimatedTime *time.Time  `json:"estimatedTime"`
}

type MachineType

type MachineType string
const (
	Washer MachineType = "Washer"
	Dryer  MachineType = "Dryer"
)

type NotifiedMachine

type NotifiedMachine struct {
	Building    string
	Machine     string
	MachineType *string
	WaitingFor  string // Available, Done
}

type PVTA

type PVTA struct {
}

func (*PVTA) Exec

func (c *PVTA) Exec(ctx shireikan.Context) error

func (*PVTA) GetDescription

func (c *PVTA) GetDescription() string

func (*PVTA) GetDomainName

func (c *PVTA) GetDomainName() string

func (*PVTA) GetGroup

func (c *PVTA) GetGroup() string

func (*PVTA) GetHelp

func (c *PVTA) GetHelp() string

func (*PVTA) GetInvokes

func (c *PVTA) GetInvokes() []string

func (*PVTA) GetSubPermissionRules

func (c *PVTA) GetSubPermissionRules() []shireikan.SubPermission

func (*PVTA) IsExecutableInDMChannels

func (c *PVTA) IsExecutableInDMChannels() bool

type Where

type Where struct {
}

func (*Where) Exec

func (c *Where) Exec(ctx shireikan.Context) error

func (*Where) GetDescription

func (c *Where) GetDescription() string

func (*Where) GetDomainName

func (c *Where) GetDomainName() string

func (*Where) GetGroup

func (c *Where) GetGroup() string

func (*Where) GetHelp

func (c *Where) GetHelp() string

func (*Where) GetInvokes

func (c *Where) GetInvokes() []string

func (*Where) GetSubPermissionRules

func (c *Where) GetSubPermissionRules() []shireikan.SubPermission

func (*Where) IsExecutableInDMChannels

func (c *Where) IsExecutableInDMChannels() bool

Jump to

Keyboard shortcuts

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