7-days-to-die-server-manager icon indicating copy to clipboard operation
7-days-to-die-server-manager copied to clipboard

Chatbridge: add a configurable prefix to messages

Open ZeroFluxxx opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Please describe. No problem.

Describe the solution you'd like Would like the option to be able to change from white text to another colour so to stand out in game as quite often text chat is missed or ignored because of white text not clearly visible in game depending on where player is looking.

Describe alternatives you've considered No real alternatives to work with here.

Additional context Not at this time

ZeroFluxxx avatar Jul 20 '20 17:07 ZeroFluxxx

Cleanest solution for this I think is a configurable prefix for Discord->game chatbridge messages. With a configurable prefix, people can use the colour codes from CPM to give their message any colour.

  • Add a new attribute to SdtdConfig in the database. Create a DB migration for this
  • Add a POST api controller to update the value
  • Update the frontend discord settings with a new input field
  • Use the new value in the chatbridge hook

niekcandaele avatar Oct 01 '20 21:10 niekcandaele