Streaming mode back on
This commit is contained in:
22
cmdStream.go
Normal file
22
cmdStream.go
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
// +build !rm_basic_commands allcommands reactcmd
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
command := Command{
|
||||||
|
Cmd: []string{"stream", "s" },
|
||||||
|
Description: "Stream all incoming messages",
|
||||||
|
Help: "",
|
||||||
|
Exec: cmdStream,
|
||||||
|
}
|
||||||
|
|
||||||
|
RegisterCommand(command)
|
||||||
|
}
|
||||||
|
|
||||||
|
func cmdStream(cmd []string) {
|
||||||
|
stream = true
|
||||||
|
channel.Name = ""
|
||||||
|
printToView("Feed", "You are now viewing the formatted stream")
|
||||||
|
clearView("Chat")
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user