aboutsummaryrefslogtreecommitdiff
path: root/cmd/bot-kbbi/main.go
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2020-04-12 04:42:45 +0700
committerShulhan <m.shulhan@gmail.com>2020-04-12 04:42:45 +0700
commit8e2aaf2df151f61a874bb7a62929afb005fa2abd (patch)
tree3497f604013d52b7f9a3c38335cf77661b388c44 /cmd/bot-kbbi/main.go
parent9cf57fc952e4161c8e7fc5c9de8869d3137acb20 (diff)
downloadkamusku-8e2aaf2df151f61a874bb7a62929afb005fa2abd.tar.xz
all: fix and suppress linter warnings
Diffstat (limited to 'cmd/bot-kbbi/main.go')
-rw-r--r--cmd/bot-kbbi/main.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/cmd/bot-kbbi/main.go b/cmd/bot-kbbi/main.go
index 66b2edf..91c2552 100644
--- a/cmd/bot-kbbi/main.go
+++ b/cmd/bot-kbbi/main.go
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+//
+// Program bot-kbbi adalah Telegram Bot yang melayani pencarian definisi kata
+// menggunakan perintah pesan di Telegram.
+//
package main
import (
@@ -27,9 +31,13 @@ func main() {
log.Println(err)
}
}()
- defer tgbot.Stop()
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
<-c
+
+ err = tgbot.Stop()
+ if err != nil {
+ log.Println(err)
+ }
}