timing
This commit is contained in:
parent
6304c368cd
commit
9e7c470567
10
main.go
10
main.go
|
@ -68,7 +68,7 @@ func (g Greeter) Exec(c *telgo.Client, args []string) bool {
|
||||||
c.Sayln(" Hello there")
|
c.Sayln(" Hello there")
|
||||||
c.Sayln("")
|
c.Sayln("")
|
||||||
|
|
||||||
if wait(1*time.Second, c.Cancel) {
|
if wait(5*time.Second, c.Cancel) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
c.Sayln(" welcome to <<</>>")
|
c.Sayln(" welcome to <<</>>")
|
||||||
|
@ -76,14 +76,14 @@ func (g Greeter) Exec(c *telgo.Client, args []string) bool {
|
||||||
c.Sayln(" from the valley of the clueless")
|
c.Sayln(" from the valley of the clueless")
|
||||||
c.Sayln("")
|
c.Sayln("")
|
||||||
|
|
||||||
if wait(1*time.Second, c.Cancel) {
|
if wait(5*time.Second, c.Cancel) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
c.Sayln(" we run a comfy hackspace")
|
c.Sayln(" we run a comfy hackspace")
|
||||||
c.Sayln(" with a peaceful comunity")
|
c.Sayln(" with a peaceful community")
|
||||||
c.Sayln("")
|
c.Sayln("")
|
||||||
|
|
||||||
if wait(1*time.Second, c.Cancel) {
|
if wait(3*time.Second, c.Cancel) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
c.Sayln(" we are part of")
|
c.Sayln(" we are part of")
|
||||||
|
@ -91,7 +91,7 @@ func (g Greeter) Exec(c *telgo.Client, args []string) bool {
|
||||||
c.Sayln(" over 10 years")
|
c.Sayln(" over 10 years")
|
||||||
c.Sayln("")
|
c.Sayln("")
|
||||||
|
|
||||||
if wait(1*time.Second, c.Cancel) {
|
if wait(3*time.Second, c.Cancel) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
c.Sayln(" you should come by!")
|
c.Sayln(" you should come by!")
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=realraum birthday telnet server
|
Description=<<</>> telnet server
|
||||||
After=local-fs.target
|
After=local-fs.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=realraum birthday telnet server socket
|
Description=<<</>> telnet server socket
|
||||||
|
|
||||||
[Socket]
|
[Socket]
|
||||||
ListenStream=23
|
ListenStream=23
|
||||||
|
|
Loading…
Reference in New Issue