csbot.plugins.youtube module¶
-
exception
csbot.plugins.youtube.YoutubeError(http_error)[source]¶ Bases:
ExceptionSignifies some error occurred accessing the Youtube API.
This is only used for actual errors, e.g. invalid API key, not failure to find any data matching a query.
Pass the
HttpErrorfrom the API call as an argument.
-
class
csbot.plugins.youtube.Youtube(bot)[source]¶ Bases:
csbot.plugin.PluginA plugin that does some youtube things. Based on williebot youtube plugin.
-
CONFIG_DEFAULTS= {'api_key': ''}¶
-
CONFIG_ENVVARS= {'api_key': ['YOUTUBE_DATA_API_KEY']}¶
-
RESPONSE= '"{title}" [{duration}] (by {uploader} at {uploaded}) | Views: {views}'¶
-
CMD_RESPONSE= '"{title}" [{duration}] (by {uploader} at {uploaded}) | Views: {views} | {link}'¶
-