palworld-admin / server

GNU General Public License v3.0
11 stars 4 forks source link

Unable to see chat messages in discord server. (Also, suggestion to have a log file for problem diagnosis.) #3

Open StrikerMan780 opened 8 months ago

StrikerMan780 commented 8 months ago

I have the new DLL, but I'm still unable to get connected to my Webhook, or at the very least, none of the in-game chat is being relayed.

My config is as follows:

"server": {
        "host": "<server ip>",
        "key": "<server password>",
        "port": 33500
    },
    "discord": {
        "webhook_url": "<webhook URL>",
        "bot_name": "[SM] Palworld Server",
        "bot_avatar": "<image>",
        "color": 65280
    }

Is the stuff in Server supposed to be the server's IP, Password, and Port, or is it supposed to be RCON IP/Pass/Port? Or, is it something else entirely?

Perhaps this plugin should produce a log file in the directory of the DLL so it is easier to tell what's going on, when the console itself is inaccessible. (IE: Logging chat messages, connection issues with the webhook, etc)

Also, I suggest having the plugin send "Server Started!" to the webhook when it starts up.

t4bby commented 8 months ago

Is the stuff in Server supposed to be the server's IP, Password, and Port, or is it supposed to be RCON IP/Pass/Port? Or, is it something else entirely?

Yes, it is different from RCON, I'll be exposing the game function to be called via RPC, which you can build your server automation, such as spawning Pals, system announcements, chat filter, adding exp, giving items to a player, and maybe detecting anomalies in the stats of a player anti-cheat and many more.

For your feature request, I'll make it possible with the next preview build.