MTGCardFetcher Help
What is the bot?
The bot functions as an auto-responder to posts in which people request certain Magic: the Gathering (MTG) cards. The response will contain images and links to various MTG sites as an easy way to tell people about certain cards, as there are many MTG cards.
How does it work:
In Magic: the Gathering subreddits, you can call the bot by putting the name of an MTG card between [[]] brackets. That's double brackets, e.g.: [[Jace, the Mind Sculptor]]. Multiple cards, up to a maximum of currently 25 are responded to by the bot (due to a maximum message length of reddit and the bot not responding with enormous posts).
The bot currently does respond to self-posts. Any self-posts containing cards will be replied with.
Edits will not work currently. However, if you forget to add brackets to you post (thus the bot has not replied yet), you can edit them in and the bot will see that if changed within a few minutes.
What does the bot respond with?
It responds with 4-5 links (depending on the sub) per card.
The format is as following:
Card Image - (G), (MC), {EDH}
- Card Image: The (requested) name of the card, with a link to an image on the official Gatherer. The name given is the one originally requested by the poster, to indicate if anything was edited later but mostly to not suddenly have a vague cardname after a "wrong" spellcheck. The image linked goes to the Gatherer because it's the most accessible card website and also the official one.
The URL has "&.jpg" appended to it. This has no effect on the image or the Gatherer, but allows Reddit Enhancement Suite to correctly treat it as a collapsible image. - (G): This is a link to the whole page of the card on the Official Gatherer, to see comments or other versions of the card.
- (MC): This links to the card on MagicCards. Reasons for this site is that it has high-resolution scans of cards and also has links to cards not officially on the Gatherer. It is also a site quite popular under Magiccers to link cards to (as due to the high resolution scans).
- EDH: On EDH-subreddits (/r/EDH and r/CompetitiveEDH (No longer TinyLeaders as that's not really EDH)) the bot adds an additional link to the website edhrec.com, showing EDH advice for that card.
Special Features
Cards can now be called with their set ID. You can add a set shortcode after a cardname, which will fetch the card's image from that set if it was in that set (else it will default to the regular image).
Example:
The best [[Wrath of God|C13]] is Kev Walker's artwork.
Reply:
Wrath of God
It's possible to use both [[CARDNAME|SET]] or [[CARDNAME\SET]] (a pipe | character or backwards \ slash).
You can see the codes for expansions on http://mtgsalvation.gamepedia.com/ It uses those (as defined in mtgjson).
The PM function using '!!!' has been removed due to bugs and noone using it.
Active subreddits
The bot is currently active on the following subreddits:
- AllStandards
- BasementBoardGames
- BudgetDecks
- casualmtg
- CompetitiveEDH
- custommagic
- edh
- EggsMTG
- findmycard
- FishMTG
- Highlandermagic
- infect
- johnnys
- LRcast
- Magicdeckbuilding
- MagicDuels
- magicTCG
- modernmagic
- mtgcube
- mtgGore
- mtglegacy
- pauper
- spikes
- threecardblind
- TinyLeaders
- TronMTG
- TrueMTG
- ViableCombos
If it misses a certain sub, please consult the moderators first and let them tell me (/u/xslicer) to activate it there.
Inner workings
After checking a post for [[]]'s and getting the names, it does a few checks for validity:
- Checks the Gatherer if the given name exists.
- Then checks for nicknames or legendary names
- Else checks a spelling checker (private, using MTGJson)
- If a card is found, it will respond with the URL's given, all placed with the correct name of the card. Since it relies on the Gatherer or MTGJson it will not be able to link any cards that are not available on the gatherer. It is possible that a card is found which does not exist on the Gatherer. In that care, a card will still be linked, but the Gatherer will give back an image with only a backside.
- Several earlier broken cards like split cards and holiday cards have been added in a seperate database, not relying on the Gatherer or MTGJson.
Posted Dec 22, 2015, 10:59 AM UTC · edited
This might be more effort than it's worth, but could the bot post both sides of a double-faced card when one side is linked?
Thanks for the great bot!