Discord-Utilities-v2
Discord-Utilities-v2 copied to clipboard
A modular and stable version of DU v1
trafficstars
Join the DU discord server for latest binary and support
Requirements to run these plugin(s)
- New Discord API Plugin (Remove the old one to avoid conflicts) (Please restart server when first added / when new version added)
Main Module
- This is needed for all the other modules.
- Consists how to retrieve and store data to config.
Server Details Module
- Add
addons/sourcemod/plugins/du_serverdetails.smx - Open
addons/sourcemod/configs/DiscordUtilitiesv2.txt - Fill up the
keyinBOT_TOKENsection with your BOT's Token Key. - Fill up the
map_thumbnailinWEBHOOK_SETTINGSsection with your Custom Map Thumbnail URL. - Fill
mapinCHANNEL_IDSsection with your server details Channel ID. - Fill up the
server_dns_nameinWEBHOOK_SETTINGSsection with your Custom DNS or leave it empty to use regular public IP. - Add
addons/sourcemod/translations/du_serverdetails.phrases.txtin your server. - Reload your current map.

Chat Relay Module
- Add
addons/sourcemod/plugins/du_chatrelay.smx - Open
addons/sourcemod/configs/DiscordUtilitiesv2.txt - Fill up the
keyinBOT_TOKENsection with your BOT's Token Key. - Fill up the
keyinAPI_KEYsection with your Steam API Key. - Fill
chatinCHANNEL_IDSsection with your chat relay Channel ID. - Fill
chatinWEBHOOKSsection with your chat relay Webhook URL. - Reload your current map.

Verification Module
- Add
addons/sourcemod/plugins/du_verification.smx - Open
addons/sourcemod/configs/DiscordUtilitiesv2.txt - Fill up the
keyinBOT_TOKENsection with your BOT's Token Key. - Fill
verificationinCHANNEL_IDSsection with your verification Channel ID. - Fill
primaryinVERIFICATION_SETTINGSsection with '1' if it's your primary server else '0'. (Keep this '1' only in one server) - Fill
serveridinVERIFICATION_SETTINGSsection with a unique value. - Fill
guildidinVERIFICATION_SETTINGSsection with your Discord Server ID. - Fill
roleidinVERIFICATION_SETTINGSsection with your verification Role ID. - Fill
invite_linkinVERIFICATION_SETTINGSsection with your discord server Invite Link. - Fill
commandinVERIFICATION_SETTINGSsection with the command(s) players need to type in Discord to link their discord. (Split multiple commands with ',{space}')(Max 5) - Fill
command_ingameinVERIFICATION_SETTINGSsection with the command(s) players need to type In-Game to get their verification code. (Split multiple commands with ',{space}')(Max 5) - Fill
blocked_commandsinVERIFICATION_SETTINGSsection with the command(s) players cannot access without verifying their discord. (Split multiple commands with ',{space}')(Max 64) - Change
use_swgm_for_blocked_commandsinVERIFICATION_SETTINGSsection to '1' if you want to use commands from SWGM config file as well. - Fill
database_nameinVERIFICATION_SETTINGSsection with database entry name inconfigs/database.cfg - Fill
table_nameinVERIFICATION_SETTINGSsection with your desired table name in the database. - Add
addons/sourcemod/translations/du_verification.phrases.txtin your server. - Reload your current map.

Bug Report Module
- Add
addons/sourcemod/plugins/du_bugreport.smx - Open
addons/sourcemod/configs/DiscordUtilitiesv2.txt - Fill up the
keyinBOT_TOKENsection with your BOT's Token Key. - Fill
bugreportinWEBHOOKSsection with your bug report Webhook URL. - Fill up the
server_dns_nameinWEBHOOK_SETTINGSsection with your custom dns or leave it empty. - Add
addons/sourcemod/translations/du_bugreport.phrases.txtin your server. - Reload your current map.

Call Admin Module
- Add
addons/sourcemod/plugins/du_calladmin.smx - Open
addons/sourcemod/configs/DiscordUtilitiesv2.txt - Fill up the
keyinBOT_TOKENsection with your BOT's Token Key. - Fill
calladmininWEBHOOKSsection with your calladmin Webhook URL. - Fill up the
server_dns_nameinWEBHOOK_SETTINGSsection with your custom dns or leave it empty. - Add
addons/sourcemod/translations/du_calladmin.phrases.txtin your server. - Reload your current map.

Sourcebans / MaterialAdmin Module
- Add
addons/sourcemod/plugins/du_sourcebans.smx - Open
addons/sourcemod/configs/DiscordUtilitiesv2.txt - Fill up the
keyinBOT_TOKENsection with your BOT's Token Key. - Fill
bansinWEBHOOKSsection with your bans Webhook URL. - Fill
commsinWEBHOOKSsection with your comms Webhook URL. - Fill
reportplayerinWEBHOOKSsection with your sourcebans/materialadmin report Webhook URL. - Fill up the
server_dns_nameinWEBHOOK_SETTINGSsection with your custom dns or leave it empty. - Add
addons/sourcemod/translations/du_sourcebans.phrases.txtin your server. - Reload your current map.

Admin Logs Module
- Add
addons/sourcemod/plugins/du_adminlogs.smx - Open
addons/sourcemod/configs/DiscordUtilitiesv2.txt - Fill up the
keyinBOT_TOKENsection with your BOT's Token Key. - Fill
adminloginCHANNEL_IDSsection with your adminlog Channel ID. - Add
addons/sourcemod/translations/du_adminlogs.phrases.txtin your server. - Reload your current map.

Crash Report Module
- Add
addons/sourcemod/plugins/du_crashreport.smx - Open
addons/sourcemod/configs/DiscordUtilitiesv2.txt - Fill up the
keyinBOT_TOKENsection with your BOT's Token Key. - Fill
crashreportinCHANNEL_IDSsection with your crash report Channel ID which is only visible to admins. - Fill
crashreport_nonadmininCHANNEL_IDSsection with your adminlog Channel ID. - Fill up the
server_dns_nameinWEBHOOK_SETTINGSsection with your custom dns or leave it empty. - Add
addons/sourcemod/translations/du_crashreport.phrases.txtin your server. - Reload your current map.
Console history works in Windows only


Server Tracker Module
- This module is used for your convenience only. It helps you know which of your server is using which
serverid& which server isprimary. - Fill up the
servers_table_nameinVERIFICATION_SETTINGSsection with your desired table name for this module. (Table will be created underdatabase_namedatabase) - Reload your current map.
![]()
Recommended:
- Create a password protected, less slots server (1-5) and mark that as the "primary" server. Keep these convars values to avoid map change in that server:
sv_hibernate_when_empty 0;mp_maxrounds 99999;mp_roundtime 60;mp_roundtime_defuse 60. This is to avoid bot missing a message to delete when primary server is between changing maps. - Make sure slow-mode in turned on for atleast 15 seconds in Chat Relay & Verification discord channel(s) to avoid getting Rate Limited when someone is spamming.
NOTE:
map&verificationkeys inMESSAGE_IDSsection are automatically added with message id by the respective plugins. If you want to add a new message in your respective channel, just remove the id frommaporverificationkeys inMESSAGE_IDSsection and reload the current map.- Why is this not compilable in SM 1.12? It is because of this :(. I personally use SM 1.10 compiler