fix #72 null point for bot (#73)

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2019-03-05 12:33:54 +08:00 committed by GitHub
parent 197bad6faf
commit 442708dd05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,11 +235,6 @@ func (p Plugin) Exec() error {
bot, err := tgbotapi.NewBotAPI(p.Config.Token)
// enable bot debug mode
if p.Config.Debug {
bot.Debug = true
}
if err != nil {
return err
}