mirror of
https://github.com/Mestima/GM-Discord.git
synced 2025-05-05 22:00:14 +00:00
slight reorganization
- request.php and send.php files moved to web/php/ directory - updated readme info
This commit is contained in:
parent
147a39e67a
commit
7e38b859f4
10
README.md
10
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
|
- Allows Garry's Mod server admins to run [ULX](https://ulyssesmod.net/downloads.php) commands via Discord
|
||||||
|
|
||||||
## Installation Guide:
|
## 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/send.php`
|
||||||
|
|
||||||
- `http://yoursite.com/request.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.
|
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.
|
3. Upload the addon to your server.
|
||||||
|
@ -21,6 +21,5 @@
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
$context = stream_context_create($options);
|
$context = stream_context_create($options);
|
||||||
|
|
||||||
$result = file_get_contents($_POST["webhook"], false, $context);
|
$result = file_get_contents($_POST["webhook"], false, $context);
|
||||||
?>
|
?>
|
Loading…
x
Reference in New Issue
Block a user