The old discord bot. I made to work with the auth system I was using.
I have zero intentions to keep this updated and working.
https://nodejs.org/en/ (Make sure this is installed)
Make sure to setup a mysql database and add run the sql file.
Then you would want to setup the site first this is how it makes a post request I would also install pm2 to keep this running then for the discord bot your gonna wanna do npm i to install it config the bot token then start it.
PerformHttpRequest("http://iphere/sfihsafouihsdf", function(result, data)
if (data:gsub("%\"", "") == "ERR_404_DIR_INVALID") then
print("^2License Activated!")
Citizen.CreateThread(function()
-- script here
else
print("^1License Deactivated ^0")
end
end)
Don't be a leach. Please give me a star or follow.