Add go.mod and fix build
This commit is contained in:
parent
8745fbd0e8
commit
5962266909
|
@ -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
|
||||||
|
)
|
|
@ -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=
|
6
main.go
6
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(" Great! We'll see you at our hackspace then.")
|
||||||
c.Sayln("")
|
c.Sayln("")
|
||||||
c.Sayln(" expect Music, sometimes Food, Mate,")
|
c.Sayln(" expect Music, sometimes Food, Mate,")
|
||||||
c.Sayln(" Hacksessions and more")
|
c.Sayln(" Hacksessions and more")
|
||||||
c.Sayln("")
|
c.Sayln("")
|
||||||
c.Sayln(" Find the place:")
|
c.Sayln(" Find the place:")
|
||||||
c.Sayln(" HQ im Zentralwerk, Riesaer Straße 32, 01127 Dresden")
|
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() {
|
func main() {
|
||||||
cmdlist := make(telgo.CmdList)
|
cmdlist := make(telgo.CmdList)
|
||||||
|
|
||||||
listeners, err := activation.Listeners(true)
|
listeners, err := activation.Listeners()
|
||||||
if err != nil {
|
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)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue