Ask butlerbot to send a meme from one of the subreddits.
Returns:
Object -- image (as a message to discord text channel)
Members
-
inner reddit :Object
list of subreddits to potentially choose from
-
-
inner subreddit :string
randomly selected subreddit
-
Methods
-
async, inner apiImageCrawl(sreddit) → {Object}
Crawl through selected subreddit and choose one image
-
Parameters:
Name Type Description sreddit
string selected subreddit to crawl through
Returns:
Object -meme.png image
-
inner execute(message) → {string}
-
Parameters:
Name Type Description message
string command, used to determine which channel to return results
Returns:
string -results of advice api call