NockyCZ / CS2-Discord-Utilities

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

Server Status message not initialized/sent #12

Closed weeestar closed 5 months ago

weeestar commented 5 months ago

I cannot get the server status message initialized. I've tried to recreate a new bot, a new channel, a new public channel in case it was permissions issue... but still dont work. Anything else enabled is working properly: rcon, link, roles and permissions.

I've attempted to update the plugin with the last release, but still not working. I've read, re-read, re-re-read the documentation in case I forgot something but...


My server status config:

"Server Status Section": {
        "Update Time": 1800,
        "Channel ID": "1224330886049435710",
        "Message ID": "",
        "Server Status Embed": {
            "Content": "",
            "Title": "{Server.Name}",
            "Description": "\u003E IP: \u0060{Server.IP}\u0060\n\u003E",
            "Fields": "\uD83D\uDC65 Joueurs;{Server.OnlinePlayersAndBots}/{Server.MaxPlayers};True|\uD83D\uDDFA\uFE0F Map;{Server.MapName};True",
            "Thumbnail": "",
            "Image": "https://i.postimg.cc/brW3DJDp/Dust-2-CS2-1.jpg",
            "HEX Color": "#ffad33",
            "Footer": "Dernière mise à jour",
            "Footer Timestamp": true,
            "First Embed Component": 1,
            "Join Button": {
                "Enabled": false,
                "Button Text": "Rejoindre maintenant",
                "Button URL": "steam://connect/89.116.110.160:27015/",
                "Button Emoji": ""
            },
            "Players Menu": {
                "Enabled": false,
                "Menu Name": "Liste des Joueurs",
                "Players Format": "{Player.Name} | {Player.Kills}/{Player.Deaths}",
                "On Click On Player in Menu Embed": {
                    "Content": "",
                    "Title": "{Player.Name}",
                    "Description": "{Player.DiscordPing} Ce joueur est **{Player.TeamLongName}**",
                    "Fields": "Kills;{Player.Kills};true|Deaths;{Player.Deaths};true|Assists;{Player.Assists};true",
                    "Thumbnail": "",
                    "Image": "",
                    "HEX Color": "#39e600",
                    "Footer": "",
                    "Footer Timestamp": false
                }
            }
        }
    },

Discord role settings:

Captura de ecrã 2024-04-01, às 14 23 23 Captura de ecrã 2024-04-01, às 14 23 40 Captura de ecrã 2024-04-01, às 14 23 49

Then I run css_du_serverstatus and nothing happens. If I use a fake channel ID, I get the "incorrect channel ID"-like message, so for me, it means that it tried to send the message.

NockyCZ commented 5 months ago

Fixed -> https://github.com/NockyCZ/CS2-Discord-Utilities/releases/tag/v1.0.9