Skip to content

Cruze03/Discord-Utilities-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 key in BOT_TOKEN section with your BOT's Token Key.
  • Fill up the map_thumbnail in WEBHOOK_SETTINGS section with your Custom Map Thumbnail URL.
  • Fill map in CHANNEL_IDS section with your server details Channel ID.
  • Fill up the server_dns_name in WEBHOOK_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.

Server Details

Chat Relay Module

  • Add addons/sourcemod/plugins/du_chatrelay.smx
  • Open addons/sourcemod/configs/DiscordUtilitiesv2.txt
  • Fill up the key in BOT_TOKEN section with your BOT's Token Key.
  • Fill up the key in API_KEY section with your Steam API Key.
  • Fill chat in CHANNEL_IDS section with your chat relay Channel ID.
  • Fill chat in WEBHOOKS section with your chat relay Webhook URL.
  • Reload your current map.

Chat Relay Chat Relay2

Verification Module

  • Add addons/sourcemod/plugins/du_verification.smx
  • Open addons/sourcemod/configs/DiscordUtilitiesv2.txt
  • Fill up the key in BOT_TOKEN section with your BOT's Token Key.
  • Fill verification in CHANNEL_IDS section with your verification Channel ID.
  • Fill primary in VERIFICATION_SETTINGS section with '1' if it's your primary server else '0'. (Keep this '1' only in one server)
  • Fill serverid in VERIFICATION_SETTINGS section with a unique value.
  • Fill guildid in VERIFICATION_SETTINGS section with your Discord Server ID.
  • Fill roleid in VERIFICATION_SETTINGS section with your verification Role ID.
  • Fill invite_link in VERIFICATION_SETTINGS section with your discord server Invite Link.
  • Fill command in VERIFICATION_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 in VERIFICATION_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 in VERIFICATION_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 in VERIFICATION_SETTINGS section to '1' if you want to use commands from SWGM config file as well.
  • Fill database_name in VERIFICATION_SETTINGS section with database entry name in configs/database.cfg
  • Fill table_name in VERIFICATION_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.

Verification

Bug Report Module

  • Add addons/sourcemod/plugins/du_bugreport.smx
  • Open addons/sourcemod/configs/DiscordUtilitiesv2.txt
  • Fill up the key in BOT_TOKEN section with your BOT's Token Key.
  • Fill bugreport in WEBHOOKS section with your bug report Webhook URL.
  • Fill up the server_dns_name in WEBHOOK_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.

Bug Report

Call Admin Module

  • Add addons/sourcemod/plugins/du_calladmin.smx
  • Open addons/sourcemod/configs/DiscordUtilitiesv2.txt
  • Fill up the key in BOT_TOKEN section with your BOT's Token Key.
  • Fill calladmin in WEBHOOKS section with your calladmin Webhook URL.
  • Fill up the server_dns_name in WEBHOOK_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.

CallAdmin

Sourcebans / MaterialAdmin Module

  • Add addons/sourcemod/plugins/du_sourcebans.smx
  • Open addons/sourcemod/configs/DiscordUtilitiesv2.txt
  • Fill up the key in BOT_TOKEN section with your BOT's Token Key.
  • Fill bans in WEBHOOKS section with your bans Webhook URL.
  • Fill comms in WEBHOOKS section with your comms Webhook URL.
  • Fill reportplayer in WEBHOOKS section with your sourcebans/materialadmin report Webhook URL.
  • Fill up the server_dns_name in WEBHOOK_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.

Sourcebans or MaterialAdmin

Admin Logs Module

  • Add addons/sourcemod/plugins/du_adminlogs.smx
  • Open addons/sourcemod/configs/DiscordUtilitiesv2.txt
  • Fill up the key in BOT_TOKEN section with your BOT's Token Key.
  • Fill adminlog in CHANNEL_IDS section with your adminlog Channel ID.
  • Add addons/sourcemod/translations/du_adminlogs.phrases.txt in your server.
  • Reload your current map.

AdminLogs

Crash Report Module

  • Add addons/sourcemod/plugins/du_crashreport.smx
  • Open addons/sourcemod/configs/DiscordUtilitiesv2.txt
  • Fill up the key in BOT_TOKEN section with your BOT's Token Key.
  • Fill crashreport in CHANNEL_IDS section with your crash report Channel ID which is only visible to admins.
  • Fill crashreport_nonadmin in CHANNEL_IDS section with your adminlog Channel ID.
  • Fill up the server_dns_name in WEBHOOK_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.

Console history works in Windows only

CrashReport1

CrashReport2

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 is primary.
  • Fill up the servers_table_name in VERIFICATION_SETTINGS section with your desired table name for this module. (Table will be created under database_name database)
  • Reload your current map.

Server Tracker

Recommended:

  1. 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.
  2. 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:

  1. map & verification keys in MESSAGE_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 from map or verification keys in MESSAGE_IDS section and reload the current map.
  2. Why is this not compilable in SM 1.12? It is because of this :(. I personally use SM 1.10 compiler

About

A modular and stable version of DU v1

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published