forked from jshiffer/matterbridge
Release v0.4.2
This commit is contained in:
parent
78b17977c5
commit
0f2976c5ce
@ -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.
|
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
|
||||||
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
|
## 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)
|
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)
|
||||||
|
@ -2,10 +2,13 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
|
"fmt"
|
||||||
"github.com/42wim/matterbridge-plus/bridge"
|
"github.com/42wim/matterbridge-plus/bridge"
|
||||||
log "github.com/Sirupsen/logrus"
|
log "github.com/Sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var Version = "0.4.2"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
log.SetFormatter(&log.TextFormatter{FullTimestamp: true})
|
log.SetFormatter(&log.TextFormatter{FullTimestamp: true})
|
||||||
}
|
}
|
||||||
@ -13,11 +16,18 @@ func init() {
|
|||||||
func main() {
|
func main() {
|
||||||
flagConfig := flag.String("conf", "matterbridge.conf", "config file")
|
flagConfig := flag.String("conf", "matterbridge.conf", "config file")
|
||||||
flagDebug := flag.Bool("debug", false, "enable debug")
|
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()
|
flag.Parse()
|
||||||
if *flagDebug {
|
if *flagDebug {
|
||||||
log.Info("enabling debug")
|
log.Info("enabling debug")
|
||||||
log.SetLevel(log.DebugLevel)
|
log.SetLevel(log.DebugLevel)
|
||||||
}
|
}
|
||||||
|
fmt.Println("running version", Version)
|
||||||
bridge.NewBridge("matterbot", bridge.NewConfig(*flagConfig), "legacy")
|
bridge.NewBridge("matterbot", bridge.NewConfig(*flagConfig), "legacy")
|
||||||
select {}
|
select {}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user