Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
330 changes: 330 additions & 0 deletions cfg/sourcemod/Discord-Utilities.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,330 @@
// This file was auto-generated by AutoExecConfig v0.1.5 (https://forums.alliedmods.net/showthread.php?t=204254)
// ConVars for plugin "discord_utilities.smx"


// Webhook for calladmin reports and report handled print. Blank to disable.
// -
// Default: ""
sm_du_calladmin_webhook ""

// BotName for calladmin. Blank to use webhook name.
// -
// Default: "Discord Utilities"
sm_du_calladmin_botname ""

// Avatar link for calladmin bot. Blank to use webhook avatar.
// -
// Default: ""
sm_du_calladmin_avatar ""

// Color for embed message of calladmin.
// -
// Default: "#ff9911"
sm_du_calladmin_color "#ff9911"

// Content for embed message of calladmin. Blank to disable.
// -
// Default: "When in-game type !calladmin_handle <ReportID> in chat to handle this report."
sm_du_calladmin_content "When in-game type !calladmin_handle <ReportID> in chat to handle this report."

// Link to footer icon for calladmin. Blank for no footer icon.
// -
// Default: ""
sm_du_calladmin_footericon ""

// Webhook for bugreport reports. Blank to disable.
// -
// Default: ""
sm_du_bugreport_webhook ""

// BotName for bugreport. Blank to use webhook name.
// -
// Default: "Discord Utilities"
sm_du_bugreport_botname "Discord Utilities"

// Avatar link for bugreport bot. Blank to use webhook avatar.
// -
// Default: ""
sm_du_bugreport_avatar ""

// Color for embed message of bugreport.
// -
// Default: "#ff9911"
sm_du_bugreport_color "#ff9911"

// Content for embed message of bugreport. Blank to disable.
// -
// Default: ""
sm_du_bugreport_content ""

// Link to footer icon for bugreport. Blank for no footer icon.
// -
// Default: ""
sm_du_bugreport_footericon ""

// Webhook for sourcebans. Blank to disable.
// -
// Default: ""
sm_du_sourcebans_webhook ""

// BotName for sourcebans. Blank to use webhook name.
// -
// Default: "Discord Utilities"
sm_du_sourcebans_botname "Discord Utilities"

// Avatar link for sourcebans bot. Blank to use webhook avatar.
// -
// Default: ""
sm_du_sourcebans_avatar ""

// Color for embed message of sourcebans.
// -
// Default: "#0E40E6"
sm_du_sourcebans_color "#0E40E6"

// Color for embed message of sourcebans when permanent banned.
// -
// Default: "#f00000"
sm_du_sourcebans_perma_color "#f00000"

// Content for embed message of sourcebans. Blank to disable.
// -
// Default: ""
sm_du_sourcebans_content ""

// Link to footer icon for sourcebans. Blank for no footer icon.
// -
// Default: ""
sm_du_sourcebans_footericon ""

// Webhook for sourcecomms. Blank to disable.
// -
// Default: ""
sm_du_sourcecomms_webhook ""

// BotName for sourcecomms. Blank to use webhook name.
// -
// Default: "Discord Utilities"
sm_du_sourcecomms_botname "Discord Utilities"

// Avatar link for sourcecomms bot. Blank to use webhook avatar.
// -
// Default: ""
sm_du_sourcecomms_avatar ""

// Color for embed message of sourcecomms.
// -
// Default: "#FF69B4"
sm_du_sourcecomms_color "#FF69B4"

// Color for embed message of sourcecomms when permanent banned.
// -
// Default: "#f00000"
sm_du_sourcecomms_perma_color "#f00000"

// Content for embed message of sourcecomms. Blank to disable.
// -
// Default: ""
sm_du_sourcecomms_content ""

// Link to footer icon for sourcecomms. Blank for no footer icon.
// -
// Default: ""
sm_du_sourcecomms_footericon ""

// Webhook for map notification. Blank to disable.
// -
// Default: ""
sm_du_map_webhook ""

// BotName for map notification. Blank to use webhook name.
// -
// Default: "Discord Utilities"
sm_du_map_botname "Discord Utilities"

// Avatar link for map notification bot. Blank to use webhook avatar.
// -
// Default: ""
sm_du_map_avatar ""

// Color for embed message of map notification.
// -
// Default: "#6a0dad"
sm_du_map_color "#6a0dad"

// Content for embed message of map notification. Blank to disable.
// -
// Default: ""
sm_du_map_content ""

// Seconds to wait after mapstart to send the map notification webhook. 0 for no delay.
// -
// Default: "25"
sm_du_map_delay "25"

// Thumbnail link for map notification. Make sure "MAPNAME" is added in the link just like the default value. Blank for none.
// -
// Default: "https://image.gametracker.com/images/maps/160x120/csgo/MAPNAME.jpg"
sm_du_map_thumbnail "https://image.gametracker.com/images/maps/160x120/csgo/MAPNAME.jpg"

// Webhook for game server => discord server chat messages. Blank to disable.
// -
// Default: ""
sm_du_chat_webhook ""

// Text that shouldn't appear in gameserver => discord server chat messages. Separate it with ", "
// -
// Default: "rtv, nominate"
sm_du_chat_blocklist "rtv, nominate"

// Webhook for game server => discord server chat messages where chat messages are to admins (say_team with @ / sm_chat). Blank to disable.
// -
// Default: ""
sm_du_adminchat_webhook ""

// Text that shouldn't appear in gameserver => discord server where chat messages are to admin. Separate it with ", "
// -
// Default: "rtv, nominate"
sm_du_adminchat_blocklist "rtv, nominate"

// Webhook for channel where all admin commands are logged. Blank to disable.
// -
// Default: ""
sm_du_adminlog_webhook ""

// Log with this string will be ignored. Separate it with ", "
// -
// Default: "slapped, firebombed"
sm_du_adminlog_blocklist ""

// Channel ID for verfication. Blank to disable.
// -
// Default: ""
sm_du_verfication_channelid ""

// Channel ID for discord server => game server messages. Blank to disable.
// -
// Default: ""
sm_du_chat_channelid ""

// Guild ID of your discord server. Blank to disable. Needed for verification module.
// -
// Default: ""
sm_du_verification_guildid ""

// Role ID to give to user when user is verified. Blank to give no role. Verification module needs to be running.
// -
// Default: ""
sm_du_verification_roleid "826136130202107934"

// Steam API Key (https://steamcommunity.com/dev/apikey). Needed for gameserver => discord server relay and/or admin chat relay and/or Admin logs. Blank will show default author icon of discord.
// -
// Default: ""
sm_du_apikey ""

// Bot Token. Needed for discord server => gameserver and/or verification module.
// -
// Default: ""
sm_du_bottoken ""

// DNS IP address of your game server. Blank to use real IP.
// -
// Default: ""
sm_du_dns_ip ""

// Time in seconds between verifying accounts. 0 for no check.
// -
// Default: "300"
sm_du_accounts_check_interval "300"

// Use SWGM config file for restricting commands.
// -
// Default: "0"
sm_du_use_swgm_file "0"

// Display timestamps? Used in gameserver => discord server relay AND AdminLog
// -
// Default: "0"
sm_du_display_timestamps "0"

// Increase this with every server you put this plugin in. Prevents multiple replies from the bot in verfication channel.
// -
// Default: "1"
sm_du_server_id "1"

// Is this the primary server in the verification channel? Only this server will respond to generic queries.
// -
// Default: "1"
sm_du_server_primary "1"

// Command to use in text channel.
// -
// Default: "!link"
sm_du_link_command "!link"

// Command to view id.
// -
// Default: "sm_viewid"
sm_du_viewid_command "sm_viewid"

// Command to unlink.
// -
// Default: "sm_unlink"
sm_du_unlink_command "sm_unlink"

// Invite link of your discord server.
// -
// Default: "https://discord.gg/83g5xcE"
sm_du_link "https://discord.gg/83g5xcE"

// Prefix for discord messages.
// -
// Default: "[{lightgreen}Discord{default}]"
sm_du_discord_prefix "{lightgreen}[Discord]{default}"

// Prefix for chat messages.
// -
// Default: "[{lightgreen}Discord-Utilities{default}]"
sm_du_server_prefix "{lightgreen}[Discord-Utilities]{default}"

// Section name in databases.cfg.
// -
// Default: "du"
sm_du_database_name "du"

// Table Name.
// -
// Default: "du_users"
sm_du_table_name "du_users"

// Prune database with players whose last connect is X DAYS and he is not member of discord server. 0 to disable.
// -
// Default: "60"
sm_du_prune_days "60"

// Enable log for revoke?
// -
// Default: "1"
sm_du_logrevoke_enabled" "1"

// Enable to create logs/dsmembers.json?
// -
// Default: "1"
sm_du_dsmembersfile_enabled" "1"

// Thumbnail link for map notification. Make sure "MAPNAME" is added in the link just like the default value. Blank for none.
// -
// Default: ""
https://image.gametracker.com/images/maps/160x120/csgo/MAPNAME.jpg ""

// 0 - Only "say_team with @ / sm_chat"
// 0b - "say_team with @ / sm_chat" with discord to game server chat to admin.
// Any admin flag - Show messages of specific flag in channel.
// -
// Default: "0b"
sm_du_adminchat_mode "0b"

// Channel ID for discord server => game server messages only of admins. Blank to disable.
// -
// Default: ""
sm_du_adminchat_channelid ""
Binary file removed discord_api.smx
Binary file not shown.
Binary file removed discord_utilities.smx
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion discord_utilities.sp → scripting/discord_utilities.sp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ public void OnPluginStart()

CreateCvars();

RegConsoleCmd("sm_unlink", Cmd_Unlink);
RegConsoleCmd("sm_unverify", Cmd_Unlink);

LoadTranslations("Discord-Utilities.phrases");
Expand Down
Loading