ytturi / MortDeGana_Bot

Bot for Fun
MIT License
5 stars 4 forks source link

Add /gisce_meme command #29

Closed bcedu closed 3 years ago

bcedu commented 3 years ago

Case

Adds a new command to the bot:

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:

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

bcedu commented 3 years ago

@ytturi changes done :+1: