summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--matterbridge.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/matterbridge.go b/matterbridge.go
index bd324608..80e97b35 100644
--- a/matterbridge.go
+++ b/matterbridge.go
@@ -2,6 +2,7 @@ package main
import (
"crypto/tls"
+ "flag"
"github.com/42wim/matterbridge/matterhook"
"github.com/peterhellberg/giphy"
"github.com/thoj/go-ircevent"
@@ -116,6 +117,8 @@ func (b *Bridge) giphyRandom(query []string) string {
}
func main() {
- NewBridge("matterbot", NewConfig("matterbridge.conf"))
+ flagConfig := flag.String("conf", "matterbridge.conf", "config file")
+ flag.Parse()
+ NewBridge("matterbot", NewConfig(*flagConfig))
select {}
}