LakeYS / Dishorde

A Discord bridge bot for 7 Days to Die. Dishorde integrates a dedicated server with Discord, allowing players to access the game's chat from any device or location. Powered by discord.js.
http://lakeys.net/dishorde
MIT License
48 stars 27 forks source link

Duplicated messages #138

Open SunBursts75 opened 1 year ago

SunBursts75 commented 1 year ago

Hello, there is the issue - messages are being duplicated in discord if you are using serverbots such like 1CSMM_Patrons :-( . Is there any way to fix it? Thanks!

LakeYS commented 1 year ago

If the duplicated messages are from mods, there is currently not a fix available, at least to my knowledge. Sadly, no guarantees can be made for supporting modded servers as mods tend to introduce quite a few unexpected changes to the game.

SunBursts75 commented 1 year ago

Thanks for the reply. There is a string in the serveradmin.xml of 7dtd game file:

  <apitokens>
    <token name="adminuser1" secret="supersecrettoken" permission_level="0" />
  </apitokens>

Alternatively, Dishorde can create the user and send game messages on his behalf.

Or may add a config string to Dishorde`s config.json: Chat handled by mod 'name' In game log:

INF Chat (from 'Steam_xxx', entity id '-1', to 'Global'): 'User': Hello world 
INF Chat handled by mod 'name': Chat (from 'Steam_xxx', entity id '196226', to 'Global'): 'User': Hello world

Dishorde is hooked second string ("Chat handled by mod" from config.json) and send it. Or just ignoring this strings.

xXFreeFunXx commented 10 months ago

We don't use any active mods, only what is supplied as standard. We often get the Leave message twice. Sometimes the first message is cut off, then it just says "Player 'FreeFun' left".

breeece commented 8 months ago

Thanks for the reply. There is a string in the serveradmin.xml of 7dtd game file:

  <apitokens>
    <token name="adminuser1" secret="supersecrettoken" permission_level="0" />
  </apitokens>

Alternatively, Dishorde can create the user and send game messages on his behalf.

Or may add a config string to Dishorde`s config.json: Chat handled by mod 'name' In game log:

INF Chat (from 'Steam_xxx', entity id '-1', to 'Global'): 'User': Hello world 
INF Chat handled by mod 'name': Chat (from 'Steam_xxx', entity id '196226', to 'Global'): 'User': Hello world

Dishorde is hooked second string ("Chat handled by mod" from config.json) and send it. Or just ignoring this strings.

Is there any possibility we can have an option to do this ?