fix wrong name.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-10-07 22:00:09 +08:00
parent dfd91c671b
commit 6cdfb8ba10
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ func main() {
EnvVar: "PLUGIN_PHOTO",
},
cli.StringSliceFlag{
Name: "photo",
Name: "document",
Usage: "send document message",
EnvVar: "PLUGIN_DOCUMENT",
},

View File

@ -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
}