crazyhackgut / discord Goto Github PK
View Code? Open in Web Editor NEWYet another Discord Library
License: GNU General Public License v3.0
Yet another Discord Library
License: GNU General Public License v3.0
Do you send messages in the server to discord?
Now, if the module tries to send a request even at the core init stage, then it encounters an error that the web hook does not exists.
This is due to the core loading feature. Core load webhook list only on OnMapStart()
event.
"admin_logger" ""
"AdminLogging" ""
looks like Discord_BindWebHook is not working, it doesn't add damage_logs in sourcemod/configs/Discord.cfg
My Code :
public void OnMapStart()
{
Discord_BindWebHook("damage_logs", "https://discord.com/api/webhooks/857219091xxxxx/xxxxx");
}
hello Kruzya, there is update from Rest In Pawn v1.3.0 Deprecated HTTPClient methodmap
. would you update it?
thanks
Add separation for ban and comms webhook events.
To facilitate the server, make a queue of requests, and send one by one. Instead of multiple requests at once, only one will be sent.
SourceBans.smx - отправка в DS информации о бане.
Проблема заключается в том, что когда анти-чит ловит читеров, он автоматически банит и по IP и по Steam_ID. Но его баны в DS не отправляются, что не скажешь про !voteban и бан с админ панели, работает отлично.
sorry about #13, i found error that you need to add hRequest.SetHeader("Content-Type", "application/json");
on https://github.com/CrazyHackGUT/Discord/blob/master/addons/sourcemod/scripting/discord/UTIL.sp#L336
if not discord response will be
{"_misc": ["Expected \"Content-Type\" header to be one of {'application/x-www-form-urlencoded', 'multipart/form-data', 'application/json'}."]}
After some update its stop(s) working because of rip.ext? I use but it wouldnt load on my cs:s server why?
Core.smx ([Discord] Core): Required extension "REST in Pawn" file("rip.ext") not running
jzd_chatlog.smx: Could not find required plugin "discord_extended"
discord_log_admin.smx ([Discord] Admin Log): Required extension "REST in Pawn" file("rip.ext") not running
discord_report.smx ([Discord] Simple Report System): Could not find required plugin "discord_extended"
AdminSessionLog.smx ([Discord] Admin Session Log): Could not find required plugin "discord_extended"
discord.smx ([Discord] Core): Required extension "REST in Pawn" file("rip.ext") not running
napady.smx (Server Bugs to Discord): Could not find required plugin "discord_extended"
Server freezing on every player connection, but if Discord/Core is disabled server works fine without any freezes.
Metamod:Source version 1.11.0-dev+1148
SourceMod Version: 1.10.0.6545
Rest in Pawn: 1.3.1 (1.3.0 was also tested)
Discord Core: 1.3.0 (1.2.0 was also tested)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.