diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..0e7f2cc --- /dev/null +++ b/go.mod @@ -0,0 +1,8 @@ +module github.com/c3d2/telme10 + +go 1.17 + +require ( + github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf + github.com/spreadspace/telgo v0.0.0-20170609015223-7277b0d8090e +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..30844e8 --- /dev/null +++ b/go.sum @@ -0,0 +1,4 @@ +github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf h1:iW4rZ826su+pqaw19uhpSCzhj44qo35pNgKFGqzDKkU= +github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/spreadspace/telgo v0.0.0-20170609015223-7277b0d8090e h1:lhFaE8l5AfSEzH4OW+9BUAo+BuYLe21zuHwWX1YEZHw= +github.com/spreadspace/telgo v0.0.0-20170609015223-7277b0d8090e/go.mod h1:kvvhiAI5nvwI4SZrVH9vRa3MTjkcYm3tElmmh+bYuEI= diff --git a/main.go b/main.go index 7d70834..adddcb1 100644 --- a/main.go +++ b/main.go @@ -145,7 +145,7 @@ func answer(c *telgo.Client, args []string) bool { c.Sayln(" Great! We'll see you at our hackspace then.") c.Sayln("") c.Sayln(" expect Music, sometimes Food, Mate,") - c.Sayln(" Hacksessions and more") + c.Sayln(" Hacksessions and more") c.Sayln("") c.Sayln(" Find the place:") c.Sayln(" HQ im Zentralwerk, Riesaer Straße 32, 01127 Dresden") @@ -185,9 +185,9 @@ func answer(c *telgo.Client, args []string) bool { func main() { cmdlist := make(telgo.CmdList) - listeners, err := activation.Listeners(true) + listeners, err := activation.Listeners() if err != nil { - fmt.Printf("error while getting socket form systemd", err) + fmt.Printf("error while getting socket form systemd: %s", err) os.Exit(1) }