NockyCZ / CS2-Discord-Utilities

Plugin for communication between your CS2 server and your Discord server
https://buymeacoffee.com/sourcefactory
51 stars 22 forks source link

[REQUEST] Server status custom buttons #46

Open crashzk opened 3 weeks ago

crashzk commented 3 weeks ago

I configured the server status buttons as follows:

{
  "Update Time": 300,
  "Channel ID": "XXXXXXXXXX",
  "Message ID": "XXXXXXXXXXXXXXXX",
  "Server Status Embed": {
    "Content": "",
    "Title": "{Server.Name}",
    "Description": "> IP: `{Server.IP}`\n> Tempo restante: `{Server.Timeleft}`",
    "Fields": "👥 Jogadores;{Server.OnlinePlayers}/{Server.MaxPlayers};True|🗺️ Mapa;{Server.MapName};True",
    "Thumbnail": "",
    "Image": "{Server.MapImageUrl}",
    "HEX Color": "#ffad33",
    "Footer": "Última atualização",
    "Footer Timestamp": true,
    "Buttons": {
      "Join Button": {
        "Enabled": true,
        "Button Text": "Junte-se ao servidor",
        "Button URL": "{Server.JoinUrl}",
        "Button Color": 3,
        "Button Emoji": ":rocket:"
      },
      "Banlist Button": {
        "Enabled": false,
        "Button Text": "Banlist",
        "Button Color": 4,
        "Button Emoji": ":no_entry_sign:"
      },
      "Leaderboard Button": {
        "Enabled": false,
        "Server Name": "Public",
        "Button Text": "Leaderboard",
        "Button Color": 3,
        "Button Emoji": ":trophy:"
      },
      "Search Player Button": {
        "Enabled": false,
        "Server Name": "Public",
        "Button Text": "Search Players Stats",
        "Button Color": 1,
        "Button Emoji": ":bar_chart:"
      },
      "Skinchanger": {
        "Enabled": true,
        "Button Text": "Skinchanger",
        "Button URL": "https://cs2.zkservidores.com",
        "Button Color": 3,
        "Button Emoji": ":gear:"
      },
      "Adquira VIP": {
        "Enabled": true,
        "Button Text": "Adquira VIP",
        "Button URL": "https://vip.zkservidores.com",
        "Button Color": 3,
        "Button Emoji": ":star2:"
      }
    }
  },
  "ConfigVersion": 1
}

Did not create the Skinchanger and Adquira VIP buttons or change the color of Junte-se ao servidor.

image

NockyCZ commented 3 weeks ago

Custom buttons are not supported, but i can add it in the next update