Add rainbownotice command
This commit is contained in:
parent
172d18470f
commit
6525f9ec66
@ -92,6 +92,7 @@ func NewCommandProcessor(parent *MainView) *CommandProcessor {
|
|||||||
"mstate": {"msetstate"},
|
"mstate": {"msetstate"},
|
||||||
"rb": {"rainbow"},
|
"rb": {"rainbow"},
|
||||||
"rbme": {"rainbowme"},
|
"rbme": {"rainbowme"},
|
||||||
|
"rbn": {"rainbownotice"},
|
||||||
"myroomnick": {"roomnick"},
|
"myroomnick": {"roomnick"},
|
||||||
"createroom": {"create"},
|
"createroom": {"create"},
|
||||||
"dm": {"pm"},
|
"dm": {"pm"},
|
||||||
@ -166,6 +167,8 @@ func NewCommandProcessor(parent *MainView) *CommandProcessor {
|
|||||||
"cprof": cmdCPUProfile,
|
"cprof": cmdCPUProfile,
|
||||||
"trace": cmdTrace,
|
"trace": cmdTrace,
|
||||||
|
|
||||||
|
"rainbownotice": cmdRainbowNotice,
|
||||||
|
|
||||||
"fingerprint": cmdFingerprint,
|
"fingerprint": cmdFingerprint,
|
||||||
"devices": cmdDevices,
|
"devices": cmdDevices,
|
||||||
"verify-device": cmdVerifyDevice,
|
"verify-device": cmdVerifyDevice,
|
||||||
|
@ -113,6 +113,10 @@ func cmdRainbowMe(cmd *Command) {
|
|||||||
makeRainbow(cmd, event.MsgEmote)
|
makeRainbow(cmd, event.MsgEmote)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func cmdRainbowNotice(cmd *Command) {
|
||||||
|
makeRainbow(cmd, event.MsgNotice)
|
||||||
|
}
|
||||||
|
|
||||||
func cmdNotice(cmd *Command) {
|
func cmdNotice(cmd *Command) {
|
||||||
go cmd.Room.SendMessage(event.MsgNotice, strings.Join(cmd.Args, " "))
|
go cmd.Room.SendMessage(event.MsgNotice, strings.Join(cmd.Args, " "))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user