catfact

Have butlerbot get a random cat fact from the internet.

Returns:
Object -
  • string (as a message to discord text channel)

Members

inner catFactApi :string

cat fact api url

Methods

async, inner catFactApiCall(api) → {Object}

web location to perform api call against for cat image

Parameters:
Name Type Description
api string

cat fact api url

Returns:
Object -

response

inner execute(message) → {string}

Parameters:
Name Type Description
message string

command, used to determine which channel to return results

Returns:
string -

results of cat fact api call