This command makes a request to https://bcclean.tk/ImageServer/api/ in order to get a random gisce meme.
ImageServer is a very simple images server build with flask that can return images by id, random images or random images with specific tags (see https://github.com/bcedu/ImageServer).
The api is protected with basic authentication, so you must add to the conf file:
image_server_user
image_server_password
Future improvements
By now it only supports getting random memes, but the api suports get random memes related to a tag using random_image/<tag>. I have not integrated this call to the bot because I still have not added the tags to the memes of ImageServer.
Case
Adds a new command to the bot:
/gisce_meme
This command makes a request to
https://bcclean.tk/ImageServer/api/
in order to get a random gisce meme.ImageServer
is a very simple images server build with flask that can return images by id, random images or random images with specific tags (see https://github.com/bcedu/ImageServer).The api is protected with basic authentication, so you must add to the conf file:
image_server_user
image_server_password
Future improvements
By now it only supports getting random memes, but the api suports get random memes related to a tag using
random_image/<tag>
. I have not integrated this call to the bot because I still have not added the tags to the memes of ImageServer.Observations