@hook.on_start
def load_key(bot):
 global dev_key
 dev_key = bot.config.get('api_keys', {}).get('google_dev_key', None)

@ hook . on_start def load_key ( bot ) : global dev_key dev_key = bot . config . get ( 'api_keys' , { } ) . get ( 'google_dev_key' , None )
loads the api key for google apis .