~kris/9p

disco

09f6c58e8b5ee9f1cc1afd3c698658245b1ed7bb — Sean Hinchee 7 years ago b5fb6e4
hide timestamps by default
2 files changed, 2 insertions(+), 2 deletions(-)

M helper.go
M main.go
M helper.go => helper.go +1 -1
@@ 132,7 132,7 @@ func MessagePrint(Time, Username, Content string) {
	content := ParseForEmoji(Content)
	//var Color color.Attribute
	log.SetFlags(0)
	if *hideTimeStamp {
	if ! *timeStamp {
		log.Printf("%s %s %s\n", Username, Config.PromptChar, content)
	} else {
		TimeStamp, _ := time.Parse(time.RFC3339, Time)

M main.go => main.go +1 -1
@@ 36,7 36,7 @@ var State *DiscordState.State
// MsgType is a string containing global message type
type MsgType string

var hideTimeStamp = flag.Bool("t", false, "Hide timestamps in channel log")
var timeStamp = flag.Bool("t", false, "Hide timestamps in channel log")
var enableNotify = flag.Bool("n", false, "Enable notifications")
var notifyFlag = flag.String("w", "10,10,260,90", "Dimensions to pass through to statusmsg")