Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.83 KB

ChatLogger.md

File metadata and controls

53 lines (40 loc) · 1.83 KB

Steps to Enable Chat Logger Feature

  1. Install the Plugin

  2. Configure the Plugin

    • Update the discord webbook section of CS2 Chat Logger plugin configuration as follows:
    "SendLogToWebHook": 3,
    "WebHookURL": "http://YOUR-WEB-SERVER-IP-PORT/api/chat-logger?server_id=1&chat_logger_token=VerySecureTokenHere",
    "LogDiscordChatFormat": "[{DATE} - {TIME}] {TEAM} {MESSAGE} (IpAddress: {IP})",
    • Ensure "SendLogToWebHook" and "LogDiscordChatFormat" are just like this.
    • Enter anything random in chat_logger_token. It will act as a password
    • Include a unique server_id for each server.
  3. Enable Chat Logger on the Web Server

    • Here are the values you need to set in your (config.toml) file of your cs2dasboard server:
     [global]
     vipCore = false
     simpleAdmin = false
     chatLogger = true # Set this to true
     chatLoggerToken = 'VerySecureTokenHere' # This MUST match the "chat_logger_token" in your discord webhook url
     mysqlHost = 'localhost'
     mysqlPort = 3306
     mysqlUser = 'root'
     mysqlDatabase = 'dbname'
     mysqlPassword = 'password'
    
     [[servers]]
     serverName = 'Good Name'
     serverIp = '127.0.0.1'
     serverPort = 27015
     rconPort = 27015
     rconPassword = 'password'
     simpleAdminId = 36
     vipCoreId = 0
     chatLoggerId = 1 # The "server_id" value you are using in your discord webhook url for this server
    • Ensure chatLogger is set to true.
    • Set chatLoggerToken to match the token used in the Discord webhook URL.
  4. Not working?

    • Make sure the /api/chat-logger path of your web server is completely public. No basic auth or any kind of auth. The chatLoggerToken insures no one else can post messages to it.