From aa623828688b97d4c9b3132b3d6500ff917054e9 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Thu, 3 Oct 2019 10:36:18 -0400 Subject: [PATCH] Streaming mode back on --- cmdStream.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 cmdStream.go diff --git a/cmdStream.go b/cmdStream.go new file mode 100644 index 0000000..dd4bc9d --- /dev/null +++ b/cmdStream.go @@ -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") +}