8 Commits

Author SHA1 Message Date
8ee1fc3542
Update .gitignore 2020-08-26 19:21:48 +03:00
2417ab8cdc
removed useless stuff 2020-08-26 19:21:14 +03:00
52d332450b
node webpart request security fix 2020-08-26 18:53:08 +03:00
06580802e1
nodejs webpart upload 2020-08-26 18:43:01 +03:00
7e38b859f4
slight reorganization
- request.php and send.php files moved to web/php/ directory

- updated readme info
2020-08-25 06:09:35 +03:00
147a39e67a useless code removed 2020-08-25 05:48:04 +03:00
RanchTheDeer
7b6059a117
Updated request.php to fix results not retrieving
All that has changed is the line:
$result = file_get_contents_utf8("https://discordapp.com/api/channels/" . $channel . "/messages?token=" . $token);
has been changed to:
$result = file_get_contents_utf8("https://discordapp.com/api/channels/" . $channel . "/messages?token=Bot%20" . $token);
due to the fact that the Discord API now requries the word "Bot" before providing the key in requests.
2020-07-31 19:40:40 +01:00
Alex
c25c198dc4 Web part upload
There are redirection PHP scripts to redirect Garry's Mod GET and POST requests to the Discord API. CloudFlare that uses Discord do not allows GMod browser to send GET and POST requests that is the reason you must use redirection. Just upload this files to your web-server and configure api links at /lua/autorun/server/discord.lua
2019-04-12 13:38:58 +03:00