diff --git a/modules/gogs.go b/modules/gogs.go index 965cef5..8d45700 100644 --- a/modules/gogs.go +++ b/modules/gogs.go @@ -1,19 +1,31 @@ // vi:ts=4:sts=4:sw=4:noet:tw=72 +// this module will provide an interface to gogs + package modules import ( "log" "strings" + "time" "github.com/sorcix/irc" ) +var ( + gogsAPIKey string +) + func init() { MsgHandlers["fuzzytime"] = gogsHandleMessage log.Println("Initializing gogs module") } +func gogsConfig() { + time.Sleep(5 * time.Second) + gogsAPIKey = ModParams["gogs-api-key"] +} + func gogsHandleMessage(m *irc.Message) { tok := strings.Split(m.Trailing, " ") if len(tok) < 1 {