IITC Plugin that copies Portal Info to Clipboard or sends it directly to Discord via WebHook in the format needed by the PokeNav Discord Bot as follows:
@PokeNav create poi <type> «<name>» <latitude> <longitude> "ex-eligible: 1" (if Ex Gym)
To use this IITC Plugin, you need
To install the Plugin, click :point_right:here:point_left:.
You should be asked if you want to install an external Plugin. Confirm the Installation and you are done!
With This Plugin you can...
If you use the Pogo tools plugin by AlfonsoML (development from original author stalled, but still working), the info entered there is used to determine Type and Ex Eligibility if applicable. Otherwise you can choose manually.
If you use the Plugin, you also have the option to upload all gathered Data at once.
Credits for the original source and licenses of dependencies can be found here.
The Plugin is not the very best code style and the code may not be very "error-friendly" because i am in no way an expert in JavaScript at the moment, but the important thing for me was to get it work, and it does exacly that, nothing more :wink:
A Tutorial on how to set up a WebHook in Discord can be found here.
The WebHook has to be set up for the PokeNav Admin Channel (named #pokenav by default).
If you created the WebHook, copy the WebHook URL and paste it into the Text Box in the Settings Dialog of the Userscript. The URL will be stored in Local Browser Storage for you, so you normally won't have to re-enter it.
Note: Have in mind that anyone who has the WebHook URL and knows how to post to WebHooks can send any Message he likes to the Channel, so be cautious who you give the WebHook URL to.
The Companion Bot is a helper Bot that recieves a JSON file from the WebHook or an arbitrary CSV file from the user containing all PoI to create / update and posts the PokeNav commands one at a time. This is because WebHooks can only post 30 Messages per minute, resulting in long waiting times if you want to create all PoI via WebHook. And you have to keep IITC on all the time.
After the Export, the Bot does its Work automatically without the need to keep IITC open so long.
You can invite it to your server by clicking :point_right:here:point_left:.
You can contribute by...