This application is designed to automate the process of replacing invalid URLs media stored in a MySQL database with valid media URLs fetched from Discord messages.
- Streamable: View
-
Prerequisites:
- Install Node.js on your operating system.
- Open the
index.js
file in a text editor (Visual Studio Code or Notepad++). - Adjust the
Config
,Database
, andTables
variables according to your Discord bot token, MySQL database configuration, and table/column names.
-
Backup your database:
- It's optional but highly recommended to create a backup of your database before running the application.
-
Installation:
- Run
install.bat
and wait for the libraries to be downloaded.
- Run
-
Execution:
- Run
start.bat
and wait for the process to complete. - Upon completion, press
CTRL+C
in your terminal to stop the execution and close the window.
- Run
- It's advisable to run the application before starting your FiveM server.
- This application has not been tested extensively on databases with large datasets. Adjustments may be required for optimal performance.