mirror of https://github.com/Rudi9719/kbtui.git
Gregory Rudolph
5 years ago
1 changed files with 22 additions and 0 deletions
@ -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") |
||||||
|
} |
Loading…
Reference in new issue