Skip to content

Commit 67531af

Browse files
committed
:V
1 parent d02117c commit 67531af

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

plugins/google_translate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def translate(text, bot):
5353

5454
api_key = bot.config.get("api_keys", {}).get("google_dev_key", None)
5555
if not api_key:
56-
return "No Google API key."
56+
return "This command requires a Google Developers Console API key."
5757

5858
args = text.split(' ', 2)
5959

plugins/youtube.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def youtube_url(match, bot):
7979
def youtube(text):
8080
"""youtube <query> -- Returns the first YouTube search result for <query>."""
8181
if not dev_key:
82-
return "This command requires a Google API key."
82+
return "This command requires a Google Developers Console API key."
8383

8484
json = requests.get(search_api_url, params={"q": text, "key": dev_key}).json()
8585

@@ -98,7 +98,7 @@ def youtube(text):
9898
def youtime(text):
9999
"""youtime <query> -- Gets the total run time of the first YouTube search result for <query>."""
100100
if not dev_key:
101-
return "This command requires a Google API key."
101+
return "This command requires a Google Developers Console API key."
102102

103103
json = requests.get(search_api_url, params={"q": text, "key": dev_key}).json()
104104

0 commit comments

Comments
 (0)