Skocz do zawartości

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.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

Discord/Slack API (CallAdmin, SourceBans, ...)


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 492
  • Lokalizacja:AMXX.PL
Offline

Napisano 11.01.2017 15:59

<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 &lt;webhook&gt; &lt;message&gt;</li>
<li>Auto format plain text into JSON for slack &amp; discord</li>
<li>Auto resend msg if the API is busy<br /></li>
</ul><br /><b>Installation</b><br /><br />discord.smx -&gt; addons/sourcemod/plugins/<br />discord.cfg -&gt; 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 -&gt; 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: &quot;#ff2222&quot;<br />discord_calladmin_color &quot;#ff2222&quot;<br /><br />// If enabled add a random refer ID to the report title.<br />// -<br />// Default: &quot;1&quot;<br />discord_calladmin_refer &quot;1&quot;<br /><br />// Remove this part from servername before sending the report.<br />// -<br />// Default: &quot; | By PulseServers.com&quot;<br />discord_calladmin_remove &quot; | By PulseServers.com&quot;<br /><br />// Remove this part from servername before sending the report.<br />// -<br />// Default: &quot;3kliksphilip.com | &quot;<br />discord_calladmin_remove2 &quot;3kliksphilip.com | &quot;<br /><br />// Config key from configs/discord.cfg.<br />// -<br />// Default: &quot;calladmin&quot;<br />discord_calladmin_webhook &quot;calladmin&quot;<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 -&gt; addons/sourcemod/plugins/<br />discord_sourcecomms.smx -&gt; 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: &quot;#ff2222&quot;<br />discord_sourcebans_color &quot;#ff2222&quot;<br /><br />// Link to sourcebans.<br />// -<br />// Default: &quot;[url="https://sb.eu.3kliksphilip.com/index.php?p=banlist&amp;searchText=%7BSTEAMID%7D""]https://sb.eu.3kliksphilip.com/index.php?p=banlist&amp;searchText={STEAMID}&quot;<br[/url]/>discord_sourcebans_url &quot;https://sb.eu.3kliks...TEAMID}&#34;<br /><br />// Config key from configs/discord.cfg.<br />// -<br />// Default: &quot;sourcebans&quot;<br />discord_sourcebans_webhook &quot;sourcebans&quot;<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: &quot;#ffff22&quot;<br />discord_sourcecomms_color_gag &quot;#ffff22&quot;<br /><br />// Discord/Slack attachment mute color.<br />// -<br />// Default: &quot;#2222ff&quot;<br />discord_sourcecomms_color_mute &quot;#2222ff&quot;<br /><br />// Discord/Slack attachment silence color.<br />// -<br />// Default: &quot;#ff22ff&quot;<br />discord_sourcecomms_color_silence &quot;#ff22ff&quot;<br /><br />// Link to sourcebans.<br />// -<br />// Default: &quot;[url="https://sb.eu.3kliksphilip.com/index.php?p=commslist&amp;searchText=%7BSTEAMID%7D""]https://sb.eu.3kliksphilip.com/index.php?p=commslist&amp;searchText={STEAMID}&quot;<br[/url]/>discord_sourcecomms_url &quot;https://sb.eu.3kliks...TEAMID}&#34;<br /><br />// Config key from configs/discord.cfg.<br />// -<br />// Default: &quot;sourcecomms&quot;<br />discord_sourcecomms_webhook &quot;sourcecomms&quot;<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ł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych