#Discord chat is not coming to PZ.

17 messages · Page 1 of 1 (latest)

frigid oriole
#

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?

haughty mulch
#

@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

frigid oriole
#

@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 ****

haughty mulch
frigid oriole
# haughty mulch 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?

frigid oriole
#

Can't I remove @tacit idol74.... from chat?

haughty mulch
#

That is how it works

frigid oriole
#

Thank you for resolving the issue!

haughty mulch
# frigid oriole 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

frigid oriole
frigid oriole
haughty mulch
frigid oriole
haughty mulch