I've spent the past few weeks on and off learning more .NET and the Discord API and all I got was this webpage.
If you don't care about how I did it or how it works and just want the bot on your server the link is right here:
The code can be found on my GitHub repo here: https://github.com/AbigailCarroll/BugBot
I'll start explaining how the bot is used. In any channel the bot has access to it will scan messages for a set of opening characters, by default this is a pair of less than signs paired with a set of closing characters, by default a set of greater than signs.
If the text between the opening and closing characters is a valid card name it will return information about that card, including a link to it's page on Altered.gg For example, if I send a message containing <<Kelon Elemental>>, the bot will reply with this:
As another note, the bot will attempt to convert user input to better match potential card names, so any ampersand the user sends will be converted to "and"
A user can also proivde the bot with tokens at the end of the name (separated by "|") to specify which version they want these are:
"C" for the common version, though this is the default so shouldn't be necessary.
"R" / "R1" for the rare version.
"R2" / "OOF" / "OOC" / "CS" for the out of faction/colour shifted rare version of the card.
If you would like, you can forgo the default embed in favour of a full art version by placing an exclamation mark before the card name.
And you can also get the ruling clarifications of the card by adding a question mark.
Finally, if you're lazy like me, you don't need to finish typing out a card's name for it to work, as long as the input is unambiguous in which card it is referring to the bot will return the card.