hubot-googledrive-search
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "hubot-googledrive-search", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Google drive search for hubot!", | ||
@@ -5,0 +5,0 @@ "main": "index.coffee", |
@@ -46,10 +46,9 @@ // Description: | ||
var tokens = auth.getTokens(); | ||
var tokens = auth.getTokens(), | ||
authUrl = auth.generateAuthUrl(), | ||
authMsg = `Authorize this app by visiting this url :\n ${authUrl}` + | ||
'\nThen use @hubot drive set code <code>'; | ||
// If there are no existing refresh tokens then the user will need to manually authenticate | ||
if (!tokens.refresh_token) { | ||
var authUrl = auth.generateAuthUrl(), | ||
authMsg = `Authorize this app by visiting this url :\n ${authUrl}` + | ||
'\nThen use @hubot drive set code <code>'; | ||
cb({ | ||
@@ -137,3 +136,3 @@ err: null, | ||
msg.send("Hubot google drive code set"); | ||
msg.send("Hubot drive code successfully set!"); | ||
}); | ||
@@ -147,3 +146,3 @@ }); | ||
for (var name in tokens) { | ||
msg.send(`#{name}: ${tokens[name]}`); | ||
msg.send(`${name}: ${tokens[name]}`); | ||
} | ||
@@ -150,0 +149,0 @@ }); |
11558