diff --git a/README.md b/README.md index 24699bf..deda948 100644 --- a/README.md +++ b/README.md @@ -12,12 +12,20 @@ Discord - [Garry's Mod](https://store.steampowered.com/app/4000) message transfe - Allows Garry's Mod server admins to run [ULX](https://ulyssesmod.net/downloads.php) commands via Discord ## Installation Guide: -1. Go to your web-server and upload send.php and request.php +1. You have to choose only one(!) of the sub-steps below (1.1 OR 1.2) + +1.1. (if you want to use php) + +Go to your web server and upload `send.php` and `request.php` files from `web/php/` folder. Your web server must support php. - `http://yoursite.com/send.php` - `http://yoursite.com/request.php` +1.2. (if you want to use nodejs) + +Coming soon. + 2. Go to the `GM-Discord/lua/autorun/server/discord.lua` and replace all API links with your website addresses. 3. Upload the addon to your server. diff --git a/web/request.php b/web/php/request.php similarity index 100% rename from web/request.php rename to web/php/request.php diff --git a/web/send.php b/web/php/send.php similarity index 99% rename from web/send.php rename to web/php/send.php index 02f6bc0..a840ca7 100644 --- a/web/send.php +++ b/web/php/send.php @@ -21,6 +21,5 @@ ) ); $context = stream_context_create($options); - $result = file_get_contents($_POST["webhook"], false, $context); ?> \ No newline at end of file