Skip to content

Commit

Permalink
Change for new firebase API
Browse files Browse the repository at this point in the history
  • Loading branch information
supcik committed Aug 15, 2016
1 parent f8bf7c6 commit c130e51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions telecom-tower-telegram-bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,11 @@ func main() {
}

// Connect to Firebase Database
fbase, err = firebasedb.NewFirebaseDB(*fireBaseURL)
if err != nil {
fbase = firebasedb.NewReference(*fireBaseURL)
if fbase.Error != nil {
log.Fatalf("Error opening firebase: %s", err)
}
fbase = fbase.Auth(*fireBaseToken)
fbase = fbase.Auth(firebasedb.Secret{Token:*fireBaseToken})

bot, err = telebot.NewBot(*token)
if err != nil {
Expand Down

0 comments on commit c130e51

Please sign in to comment.