nalka0 / Cards-and-Castles-2-discord-bot

A discord bot providing cards and castles 2 related features
0 stars 0 forks source link

Make /deck output an image of the deck instead of text #2

Open nalka0 opened 8 months ago

nalka0 commented 8 months ago

/deck's current output is a bullet list showing all the cards, it would be better if it could upload an image with the cards displayed more or less like they are in the game's deckbuilder.

Something looking like this

image

gmottajr commented 8 months ago

Hi there, I can help you out with this, please give me the details so that I can start coding. Appreciate your guidance, thank you very much!

nalka0 commented 8 months ago

@gmottajr what details do you need? I guess I'd have to write this properly in a Contributing.md but to launch the bot, you'll need to fill the values in the App.config file with the 4 settings used in the code :

For that specific feature, you can implement without adding all images (we don't have them yet, if you want to know how to get them I can try to explain but don't have full knowledge). Basically the idea is to generate images like these ramrus in the example above based on the card's informations (gold cost, amount in the deck and name). You'll also most likely need to make structural changes to allow the bot to upload an image as answer (currently it can only use static images through their link like /card does).

Don't hesitate to split these tasks as you need it's fine if you only commit a part of solution. (And make sure you don't commit the App.config with your api key/bot's token)