eliteSchwein / mooncord

Moonraker discord Bot
MIT License
131 stars 24 forks source link

[FR] Dynamically set the color of a broadcast message #254

Closed samwiseg0 closed 1 year ago

samwiseg0 commented 2 years ago

The ability to send a color code with a broadcast message to easily differentiate the type of message received. Example:

RESPOND PREFIX=mooncord.broadcast MSG="Runout detected!" COLOR="#cc0000"

RESPOND PREFIX=mooncord.broadcast MSG="We are ready to print!" COLOR="#4cf502"
eliteSchwein commented 2 years ago

the argument COLOR=" is not a valid syntax for klipper, sadly but my solution would be

RESPOND PREFIX=mooncord.broadcast MSG="Runout detected!COLOR:#cc0000"

eliteSchwein commented 2 years ago

okay updates COLOR is fine, the # is a issue, but it doesnt get send to mooncord...

RESPOND PREFIX=mooncord.broadcast MSG="Runout detected!COLOR:cc0000"

is the only solution

samwiseg0 commented 2 years ago

okay updates COLOR is fine, the # is a issue, but it doesnt get send to mooncord...

RESPOND PREFIX=mooncord.broadcast MSG="Runout detected!COLOR:cc0000"

is the only solution

That works for me. I think this is the best way to go. This would also allow some other customization in the future if you chose to implement any other options.

Thank you for taking time time to implement this