Make a backup of your database before running this script, in case anything goes wrong.
- Download the script (clone it and remove -master from the name)
- Add the script to your server.cfg
- Set your Fivemanage tokens in the config.json file
- Run the
lookup.sql
file in your database - Type
refresh
thenensure imgur-to-fivemanage
in your server console (txAdmin)
- This script may not work as expected, e.g. some images may fail to upload
- You may get timed out from Imgur/Fivemanage, blocking you from converting images. If that happens, stop the script and restart it in 15 minutes or so.
- I recommend using a proxy/vpn to avoid getting your ip blacklisted
- It should be fine to run on a server with players
- After it has finished running, you can restart the script to ensure that it didn't miss any images.