Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated messages #138

Open
SunBursts75 opened this issue Sep 7, 2023 · 4 comments
Open

Duplicated messages #138

SunBursts75 opened this issue Sep 7, 2023 · 4 comments

Comments

@SunBursts75
Copy link

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
Copy link
Owner

LakeYS commented Sep 8, 2023

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
Copy link
Author

SunBursts75 commented Sep 9, 2023

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
Copy link

xXFreeFunXx commented Jan 16, 2024

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
Copy link

breeece commented Mar 5, 2024

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants