JonnyPtn / zomboi

A discord bot for project zomboid multiplayer servers
50 stars 33 forks source link

Chat Issue #33

Closed CodedGold closed 2 years ago

CodedGold commented 2 years ago

Hey there! Just installed this on my server/discord. Something I noticed was that general messages sent in game don't show up in the channel on discord; however, when I put in commands through the discord channel, they show up in the chat in game. Is this the intention? Is there a way to reverse this so ingame general and admin messages show up in the discord channel?

Also, I was wondering if there was anyway to populate the discord channel with things like "[User] just hotwired a car!" "[User] just disassembled an item!" or even for admin characters "[User] just spawned an item!". These would help larger servers keep track of those who grief and admin abuse.

I'm showing there hasn't been any activity on this for a few months. Just wondering if the mod author is till actively working on this because I love this bot!

JonnyPtn commented 2 years ago

Messages from the general chat channel should be mirrored to discord, but there's no support for discord messages to be mirrored in-game as the game doesn't expose any functionality for that - Are you sure you're not confusing it with the official discord integration?

It should be possible to show the other user notifications you mention as long as they show up in the game's log files, as that's the only way information is exposed from the game

I'm not hugely active on this at the moment as I don't play the game much anymore, but open to any contributions from others - one was merged just a few days ago

petegilb commented 2 years ago

@CodedGold Can you give some examples of what you mean for the chat issue?

As for the second part, if the actions show up in the logs it would be possible to place them in the chat.

CodedGold commented 2 years ago

@petegilb

Okay so, when I put a command into discord, it shows it in chat for everyone on the server. But when they type something in general chat, it doesn't show it on the discord.

panel2 panel3

petegilb commented 2 years ago

did you happen to use both the bot and also put the info into the server config? Project zomboid has a built in discord integration but afaik this bot doesn't post messages from discord into the chat (only the other way around)

CodedGold commented 2 years ago

Hey there @petegilb,

I check the discord integration and that was the case. I since removed it and it stopped showing the commands in game. However, I'm still not seeing in game, general text chat showing in the discord channel. I'm not sure why.

262 56165

CodedGold commented 2 years ago

Would anyone be able to help with this?

CodedGold commented 2 years ago

I'm not really sure how to read this kind of thing but from what I've gathered, the bot wants to pull from chat=General, but in the logs, the chats I'm seeing used are chat=Local and chat=Admin chat. Is this potentially what's causing the messages not to show?: 1 2 3

JonnyPtn commented 2 years ago

Yes it only mirrors the general chat channel (intentionally)