Documentation ¶
Index ¶
- Variables
- func AnagramCmdParse(trimmed string) []string
- func AnagramResponder(e *irc.Event, con *irc.Connection, logger *log.Logger)
- func ChannelHistorian(e *irc.Event)
- func EventResponse(e parse.CalEvent, user string, etype string) []string
- func GopherHandler(e *irc.Event, con *irc.Connection)
- func IRCConnect(ircconfig parse.IRCConfig)
- func LoadCalendar()
- func SendPrivMsgs(con *irc.Connection, channel string, msgs []string)
- type Events
Constants ¶
This section is empty.
Variables ¶
var AM *anagrams.AnagramMap
AM holds anagram maps keyed off of their characters sorted
var ChannelHistory map[string]*history.HistoryHeap
ChannelHistory is a map of channel histories recording recent user messages
Functions ¶
func AnagramCmdParse ¶
func AnagramResponder ¶
AnagramResponder returns previous user messages with text anagramed
func ChannelHistorian ¶
func ChannelHistorian(e *irc.Event)
ChannelHistorian takes channel messages and records them in a HistoryHeap to save them for potential anagramming!
func EventResponse ¶
EventResponse creates a []string of useful information of an Event(struct) which will be sent to inquiring user.
func GopherHandler ¶
func GopherHandler(e *irc.Event, con *irc.Connection)
GopherHandler which responds with the next meeting type for the !nextmeetup command
func IRCConnect ¶
IRCConnect initializes and runs the irc connection and adds the GopherHandler to its event loop for parsing messages
func LoadCalendar ¶
func LoadCalendar()
LoadCalendar reads in the Events from their JSON definitions and applies it to global 'events' variable for access
func SendPrivMsgs ¶
SendPrivMsgs broadcasts PRIVMSGs via the given client and channel. msgs []string; are the messages to be sent