Skip to content

Commit

Permalink
Release v0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
42wim committed Jun 23, 2016
1 parent 78b1797 commit 0f2976c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Requires mattermost 1.2.0+
There is also [matterbridge-plus] (https://github.com/42wim/matterbridge-plus) which uses the mattermost API and needs a dedicated user (bot). But requires no incoming/outgoing webhook setup.

## binaries
Binaries can be found [here] (https://github.com/42wim/matterbridge/releases/tag/v0.4.1)
Binaries can be found [here] (https://github.com/42wim/matterbridge/releases/tag/v0.4.2)

## building
Go 1.6+ is required. Make sure you have [Go](https://golang.org/doc/install) properly installed, including setting up your [GOPATH] (https://golang.org/doc/code.html#GOPATH)
Expand Down
10 changes: 10 additions & 0 deletions matterbridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,32 @@ package main

import (
"flag"
"fmt"
"github.com/42wim/matterbridge-plus/bridge"
log "github.com/Sirupsen/logrus"
)

var Version = "0.4.2"

func init() {
log.SetFormatter(&log.TextFormatter{FullTimestamp: true})
}

func main() {
flagConfig := flag.String("conf", "matterbridge.conf", "config file")
flagDebug := flag.Bool("debug", false, "enable debug")
flagVersion := flag.Bool("version", false, "show version")
flag.Parse()
if *flagVersion {
fmt.Println("Version:", Version)
return
}
flag.Parse()
if *flagDebug {
log.Info("enabling debug")
log.SetLevel(log.DebugLevel)
}
fmt.Println("running version", Version)
bridge.NewBridge("matterbot", bridge.NewConfig(*flagConfig), "legacy")
select {}
}

0 comments on commit 0f2976c

Please sign in to comment.