I wanted to integrate Discord and PZ so that we could chat with each other.
As it turns out, it seems to be only half successful.
Messages from PZ to Discord work fine, but conversely, when I send a message from Discord, it doesn't seem to show up in Zomboid. Does anyone know why?
#Discord chat is not coming to PZ.
17 messages · Page 1 of 1 (latest)
@frigid oriole you must tag or reply to the bot you're using to relay messages inside the channel where the messages are relayed for them to be sent to the game chat
Additionally, you need a method to keep the bot awake so it can relay messages
@haughty mulch
I've modified the value in PZ setting.ini for that functionality.
Is there anything else I need to configure?
Below are the settings and server logs.
=========== ini =========
DiscordToken=MTE3NDU*********OUg
DiscordChannel=chat
DiscordChannelID=
============ Log ==============
LOG : Network >> *** DISCORD ENABLED ****
LOG : General >> ########## Server Steam ID 90**********04577 ##########
LOG : Network > > *** DISCORD API CONNECTED ****
LOG : Network > > Discord enabled on channel: chat
LOG : Network > > *** DISCORD INITIALIZATION SUCCEEDED ****
Use channel id, not channel name
It seems to work fine with the channel name.
To use this feature, I just need to send "@servertest hi" as a mention, right?
But does the "@number" automatically appear in-game like in the picture?
Yes
Can't I remove @tacit idol74.... from chat?
No
That is how it works
Thank you for resolving the issue!
Remember you should also find a way to keep the bot awake by running it in another machine or such
Because eventually discord bots put themselves to sleep and it wont relay messages till the server is restarted
Yes, thank you for your kind reply! 🙅
I have additional questions!
How to notify me on discord if I'm killed by a zombie in the world?
That requires an entirely different bot
One that requires quite intrusive permissions and a hosted area for itself
Yes, thank you. So basically they're just talking to each other?
No its a specific bot
Am looking now