flokati/modules/gogs.go

27 lines
369 B
Go
Raw Normal View History

2016-03-02 12:20:35 +00:00
// vi:ts=4:sts=4:sw=4:noet:tw=72
package modules
import (
"log"
"strings"
"github.com/sorcix/irc"
)
func init() {
MsgHandlers["fuzzytime"] = gogsHandleMessage
log.Println("Initializing gogs module")
}
func gogsHandleMessage(m *irc.Message) {
tok := strings.Split(m.Trailing, " ")
if len(tok) < 1 {
return
}
switch tok[0] {
case "!gogs":
default:
}
}