Open bwjmackie opened 1 month ago
Two examples. Commands used:
This would require access to the Groundspeak API of which they've historically been unwilling to grant access to. I did read someplace the API is at least open again after being closed for many years. I've been intending to look more into it, but I don't have the amount of free time required to do that at this stage in my life. If someone wanted to fork this code and do a pull request, I'd be happy to test it out and merge it to be accessible.
Describe the solution you'd like A new command (eg: /gc) that will create pretty-formatted links to geocaches. The command would have one required parameter (GC Code) and three optional parameters (SolvedCoords^1, SolutionDetails^2 and TargetChannel^3). For all GC codes, the bot would look up details (how? TBD^4) such as title, type, owner, D/T, container size, country, region, posted coords) and post them to the current channel in the following manner:
If Solved Coords are provided, then Posted Coords would be omitted, the Corrected Coordinates icon would be added after the Type icon, and Solved Coords would be included as a spoiler tag like this:
If Solution Details are provided, then they would be appended as follows:
Solved Coords and/or Solution Details would be ignored/discarded for any cache types where they are not applicable: All types of events, GCHQ, Traditionals, Earthcaches, Virtuals, Locationless, Adventure Labs, GPS Maze, Webcam, APE.
If Target Channel is provided, subject to sufficient permissions, the output can be redirected to any valid channel on the server. Default if not provided, or if insufficient permissions, is the current channel.
Describe alternatives you've considered Manually gathering details and formatting them nicely.
Additional context Apparently @Brain on Discord created an app that does something similar. Perhaps he has some reusable code to get you started.