flokati/modules/announcements.go

30 lines
432 B
Go

// vi:ts=4:sts=4:sw=4:noet:tw=72
package modules
import (
"strings"
)
var ()
func init() {
MsgFuncs["announcements"] = anncouncementsHandleMessage
}
func anncouncementsHandleMessage(m *Message) {
tok := strings.Split(m.Text, " ")
if len(tok) < 1 {
return
}
switch tok[0] {
case "!annadd":
/* add announcement */
case "!anndel":
/* delete announcement */
case "!annlist":
/* list announcement */
default:
}
}