File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ def youtube_url(match, bot):
7979def 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):
9898def 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
You can’t perform that action at this time.
0 commit comments