From 6cdfb8ba10d414f78e7783c36b17b2787bf1dd4a Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Fri, 7 Oct 2016 22:00:09 +0800 Subject: [PATCH] fix wrong name. Signed-off-by: Bo-Yi Wu --- main.go | 2 +- plugin.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index a79cb4e..5843000 100644 --- a/main.go +++ b/main.go @@ -38,7 +38,7 @@ func main() { EnvVar: "PLUGIN_PHOTO", }, cli.StringSliceFlag{ - Name: "photo", + Name: "document", Usage: "send document message", EnvVar: "PLUGIN_DOCUMENT", }, diff --git a/plugin.go b/plugin.go index a4ad100..baf80f8 100644 --- a/plugin.go +++ b/plugin.go @@ -111,7 +111,7 @@ func (p Plugin) Exec() error { bot, err := tgbotapi.NewBotAPI(p.Config.Token) if err != nil { - log.Println(err.Error()) + log.Println("Initialize New Bot Error:", err.Error()) return err }