Global

Methods

getInfo(msg)

Provides some information about the bot.
Parameters:
Name Type Description
msg object the message object.
Source:

sendError(msg, props)

Error handling when no image is found.
Parameters:
Name Type Description
msg object the message text
props array user input
Source:

sendImage(msg, props, api, toJson)

Sends an image to the user.
Parameters:
Name Type Description
msg object the message object
props array user input
api object the unsplash object
toJson function the function to parse json response
Source:

start(msg)

Called when user chats with the bot the first time.
Parameters:
Name Type Description
msg object the message object
Source: