<div><b>About</b><br /><br />A pretty simple plugin that allows you to send JSON messages to Discord and Slack.<br /><br /><b>Features</b><br /><ul><li>Command to test the API: sm_testdiscord <webhook> <message></li>
<li>Auto format plain text into JSON for slack & discord</li>
<li>Auto resend msg if the API is busy<br /></li>
</ul><br /><b>Installation</b><br /><br />discord.smx -> addons/sourcemod/plugins/<br />discord.cfg -> addons/sourcemod/configs/<br /><br />Add your WebHook URLs to discord.cfg, if you are using Discord don't forget to add /slack to the end of the webhook url.<br /><font color="DarkOrange"><i>WebHook URLs can be created in your channel settings on discord.</i></font><br /><br /><b>Module: CallAdmin</b><br /><br />Requires: <a href="https://forums.allie...d.php?t=213670"target="_blank">Calladmin</a><br /><br />discord_calladmin.smx -> addons/sourcemod/plugins/<br /><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>discord_calladmin.cfg</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;"><br />// Discord/Slack attachment color.<br />// -<br />// Default: "#ff2222"<br />discord_calladmin_color "#ff2222"<br /><br />// If enabled add a random refer ID to the report title.<br />// -<br />// Default: "1"<br />discord_calladmin_refer "1"<br /><br />// Remove this part from servername before sending the report.<br />// -<br />// Default: " | By PulseServers.com"<br />discord_calladmin_remove " | By PulseServers.com"<br /><br />// Remove this part from servername before sending the report.<br />// -<br />// Default: "3kliksphilip.com | "<br />discord_calladmin_remove2 "3kliksphilip.com | "<br /><br />// Config key from configs/discord.cfg.<br />// -<br />// Default: "calladmin"<br />discord_calladmin_webhook "calladmin"<br /></div>
</div>
</div><br /><br /><b>Module: SourceBans/SourceComms</b><br /><br />Requires: <a href="https://gitlab.com/Z...zip?ref=master"target="_blank">SourceBans++</a> (<b><font color="Red">edited version</font></b>, original sourcebans has no ban forwards, feel free to request compability for other sourcebans versions)<br /><br />discord_sourcebans.smx -> addons/sourcemod/plugins/<br />discord_sourcecomms.smx -> addons/sourcemod/plugins/<br /><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>discord_sourcebans.cfg</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;"><br />// Discord/Slack attachment color.<br />// -<br />// Default: "#ff2222"<br />discord_sourcebans_color "#ff2222"<br /><br />// Link to sourcebans.<br />// -<br />// Default: "[url="https://sb.eu.3kliksphilip.com/index.php?p=banlist&searchText=%7BSTEAMID%7D""]https://sb.eu.3kliksphilip.com/index.php?p=banlist&searchText={STEAMID}"<br[/url]/>discord_sourcebans_url "https://sb.eu.3kliks...TEAMID}"<br /><br />// Config key from configs/discord.cfg.<br />// -<br />// Default: "sourcebans"<br />discord_sourcebans_webhook "sourcebans"<br /></div>
</div>
</div><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>discord_sourcecomms.cfg</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;"><br />// Discord/Slack attachment gag color.<br />// -<br />// Default: "#ffff22"<br />discord_sourcecomms_color_gag "#ffff22"<br /><br />// Discord/Slack attachment mute color.<br />// -<br />// Default: "#2222ff"<br />discord_sourcecomms_color_mute "#2222ff"<br /><br />// Discord/Slack attachment silence color.<br />// -<br />// Default: "#ff22ff"<br />discord_sourcecomms_color_silence "#ff22ff"<br /><br />// Link to sourcebans.<br />// -<br />// Default: "[url="https://sb.eu.3kliksphilip.com/index.php?p=commslist&searchText=%7BSTEAMID%7D""]https://sb.eu.3kliksphilip.com/index.php?p=commslist&searchText={STEAMID}"<br[/url]/>discord_sourcecomms_url "https://sb.eu.3kliks...TEAMID}"<br /><br />// Config key from configs/discord.cfg.<br />// -<br />// Default: "sourcecomms"<br />discord_sourcecomms_webhook "sourcecomms"<br /></div>
</div>
</div><br /><br /><b>Download</b><br /><br /><a href="https://gitlab.com/Z...tar?ref=master"target="_blank">gitlab.com/Zipcore/Discord/</a></div>
Wyświetl pełny artykuł
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
Discord/Slack API (CallAdmin, SourceBans, ...)
Temat rozp. Adminek AMXX.PL, 11.01.2017 15:59
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych