examples/bot-example-webpy.py
def get_catfact():
    """Get a cat fact from catfact.ninja and return it as a string.

    Functions for Soundhound, Google, IBM Watson, or other APIs can be added
    to create the desired functionality into this bot.

    """
    response = requests.get(CAT_FACTS_URL, verify=False)
    response.raise_for_status()
    json_data = response.json()
    return json_data['fact']
def get_catfact():
    response = requests.get(CAT_FACTS_URL, verify=False)
    response.raise_for_status()
    json_data = response.json()
    return json_data['fact']
def get_catfact ( ) : response = requests . get ( CAT_FACTS_URL , verify = False ) response . raise_for_status ( ) json_data = response . json ( ) return json_data [ 'fact' ]
Get a cat fact from catfact.ninja and return it as a string.

    Functions for Soundhound, Google, IBM Watson, or other APIs can be added
    to create the desired functionality into this bot.
Get a cat fact from catfact . ninja and return it as a string .