A pretty simple plugin that allows you to send JSON messages to Discord and Slack.
- Command to test the API: sm_testdiscord <webhook> <message>
- Auto format plain text into JSON for slack & discord
- Auto resend msg if the API is busy
discord.smx -> addons/sourcemod/plugins/
discord.cfg -> addons/sourcemod/configs/
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.
DO NOT add your webhook URL inside any module config unless you know what you are doing...
WebHook URLs can be created in your channel settings on discord.
(sm_calladmin_admin_action has to be set to 0 or 2)
discord_calladmin.smx -> addons/sourcemod/plugins/
- sm_claim - Sends a message to your calladmin channel informing everyone you are on the server taking care about reports.
, original sourcebans has no ban forwards
, feel free to request compability for other sourcebans versions)
discord_sourcebans.smx -> addons/sourcemod/plugins/
discord_sourcecomms.smx -> addons/sourcemod/plugins/
Originally Posted by blackhawk74
Nice plugin zipcore, thank you!
For anyone wondering how to mention specific roles besides @here or @everyone, let's use an example:
You want to mention the @admins role. First we need to get the Role ID. You can do this by typing \@admins in your discord server, this will output a string similar to this: <@&164103385761892222>
So then in discord_calladmin.cfg we'll have this:
and ta-da, you're done! Figured that would be helpful since it took me a little while to figure out how to do this, d'oh!