- New Discord API Plugin (Remove the old one to avoid conflicts) (Please restart server when first added / when new version added)
- This is needed for all the other modules.
- Consists how to retrieve and store data to config.
- Add
addons/sourcemod/plugins/du_serverdetails.smx
- Open
addons/sourcemod/configs/DiscordUtilitiesv2.txt
- Fill up the
key
inBOT_TOKEN
section with your BOT's Token Key. - Fill up the
map_thumbnail
inWEBHOOK_SETTINGS
section with your Custom Map Thumbnail URL. - Fill
map
inCHANNEL_IDS
section with your server details Channel ID. - Fill up the
server_dns_name
inWEBHOOK_SETTINGS
section with your Custom DNS or leave it empty to use regular public IP. - Add
addons/sourcemod/translations/du_serverdetails.phrases.txt
in your server. - Reload your current map.
- Add
addons/sourcemod/plugins/du_chatrelay.smx
- Open
addons/sourcemod/configs/DiscordUtilitiesv2.txt
- Fill up the
key
inBOT_TOKEN
section with your BOT's Token Key. - Fill up the
key
inAPI_KEY
section with your Steam API Key. - Fill
chat
inCHANNEL_IDS
section with your chat relay Channel ID. - Fill
chat
inWEBHOOKS
section with your chat relay Webhook URL. - Reload your current map.
- Add
addons/sourcemod/plugins/du_verification.smx
- Open
addons/sourcemod/configs/DiscordUtilitiesv2.txt
- Fill up the
key
inBOT_TOKEN
section with your BOT's Token Key. - Fill
verification
inCHANNEL_IDS
section with your verification Channel ID. - Fill
primary
inVERIFICATION_SETTINGS
section with '1' if it's your primary server else '0'. (Keep this '1' only in one server) - Fill
serverid
inVERIFICATION_SETTINGS
section with a unique value. - Fill
guildid
inVERIFICATION_SETTINGS
section with your Discord Server ID. - Fill
roleid
inVERIFICATION_SETTINGS
section with your verification Role ID. - Fill
invite_link
inVERIFICATION_SETTINGS
section with your discord server Invite Link. - Fill
command
inVERIFICATION_SETTINGS
section with the command(s) players need to type in Discord to link their discord. (Split multiple commands with ',{space}')(Max 5) - Fill
command_ingame
inVERIFICATION_SETTINGS
section with the command(s) players need to type In-Game to get their verification code. (Split multiple commands with ',{space}')(Max 5) - Fill
blocked_commands
inVERIFICATION_SETTINGS
section with the command(s) players cannot access without verifying their discord. (Split multiple commands with ',{space}')(Max 64) - Change
use_swgm_for_blocked_commands
inVERIFICATION_SETTINGS
section to '1' if you want to use commands from SWGM config file as well. - Fill
database_name
inVERIFICATION_SETTINGS
section with database entry name inconfigs/database.cfg
- Fill
table_name
inVERIFICATION_SETTINGS
section with your desired table name in the database. - Add
addons/sourcemod/translations/du_verification.phrases.txt
in your server. - Reload your current map.
- Add
addons/sourcemod/plugins/du_bugreport.smx
- Open
addons/sourcemod/configs/DiscordUtilitiesv2.txt
- Fill up the
key
inBOT_TOKEN
section with your BOT's Token Key. - Fill
bugreport
inWEBHOOKS
section with your bug report Webhook URL. - Fill up the
server_dns_name
inWEBHOOK_SETTINGS
section with your custom dns or leave it empty. - Add
addons/sourcemod/translations/du_bugreport.phrases.txt
in your server. - Reload your current map.
- Add
addons/sourcemod/plugins/du_calladmin.smx
- Open
addons/sourcemod/configs/DiscordUtilitiesv2.txt
- Fill up the
key
inBOT_TOKEN
section with your BOT's Token Key. - Fill
calladmin
inWEBHOOKS
section with your calladmin Webhook URL. - Fill up the
server_dns_name
inWEBHOOK_SETTINGS
section with your custom dns or leave it empty. - Add
addons/sourcemod/translations/du_calladmin.phrases.txt
in your server. - Reload your current map.
- Add
addons/sourcemod/plugins/du_sourcebans.smx
- Open
addons/sourcemod/configs/DiscordUtilitiesv2.txt
- Fill up the
key
inBOT_TOKEN
section with your BOT's Token Key. - Fill
bans
inWEBHOOKS
section with your bans Webhook URL. - Fill
comms
inWEBHOOKS
section with your comms Webhook URL. - Fill
reportplayer
inWEBHOOKS
section with your sourcebans/materialadmin report Webhook URL. - Fill up the
server_dns_name
inWEBHOOK_SETTINGS
section with your custom dns or leave it empty. - Add
addons/sourcemod/translations/du_sourcebans.phrases.txt
in your server. - Reload your current map.
- Add
addons/sourcemod/plugins/du_adminlogs.smx
- Open
addons/sourcemod/configs/DiscordUtilitiesv2.txt
- Fill up the
key
inBOT_TOKEN
section with your BOT's Token Key. - Fill
adminlog
inCHANNEL_IDS
section with your adminlog Channel ID. - Add
addons/sourcemod/translations/du_adminlogs.phrases.txt
in your server. - Reload your current map.
- Add
addons/sourcemod/plugins/du_crashreport.smx
- Open
addons/sourcemod/configs/DiscordUtilitiesv2.txt
- Fill up the
key
inBOT_TOKEN
section with your BOT's Token Key. - Fill
crashreport
inCHANNEL_IDS
section with your crash report Channel ID which is only visible to admins. - Fill
crashreport_nonadmin
inCHANNEL_IDS
section with your adminlog Channel ID. - Fill up the
server_dns_name
inWEBHOOK_SETTINGS
section with your custom dns or leave it empty. - Add
addons/sourcemod/translations/du_crashreport.phrases.txt
in your server. - Reload your current map.
- 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_name
inVERIFICATION_SETTINGS
section with your desired table name for this module. (Table will be created underdatabase_name
database) - Reload your current map.
- 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.
map
&verification
keys inMESSAGE_IDS
section 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 frommap
orverification
keys inMESSAGE_IDS
section 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