bot
bot copied to clipboard
Add data API integration
Discussed at dsctickets#4469
Originally posted by eartharoid at 05.10.2022 Add a field to categories for an API URL that the bot will fetch data from (with question answers in query? and user id etc) when a ticket is created.
The opening message will use mustache templates so the json response can be used (with conditions and loops etc).
This can be used to display data from an external source that may be relevant to the ticket, such as recent punishments, purchased services etc:
Also make it possible to set the embed thumbnail, image etc. Could be done with multiple input fields but it might be easier to have an advanced input for pasting JSON?