drawshield / Drawshield-Code

PHP code to create SVG shield images from Blazons, as used on drawshield.net
https://drawshield.net
GNU General Public License v3.0
50 stars 18 forks source link

!todo bot should model required syntax when reporting unrecognised colors syntax #318

Open karlwilcox opened 2 years ago

karlwilcox commented 2 years ago

!todo bot should model required syntax when reporting unrecognised colors syntax There is no “enable” keyword. You either enable it in the preferences when using the web version, or “draw using tartan colours” or warhammer colors or whatever.

ericscheid commented 2 years ago

So, instead of saying "dark-grey is not a heraldic colour, to use, enable tartan colours in preferences undefined", the bot should say something like "dark-grey is not a heraldic colour. To use, specify drawn with tartan colors in the blazon or enable in the preferences of the web interface."

karlwilcox commented 1 year ago

At the moment the API has no knowledge of the origin of the request (i.e. whether it came from a page on the Drawshield.net website, the bot, or somewhere else). Hence we can't provide different behaviour based on the origin. We could add a new argument (or possibly use HTTP_REFERER?) but I don't see this as a priority at the moment.