Comment out rgb/bell by default.

This commit is contained in:
Shy 2024-03-16 18:37:57 +01:00
parent 3b00744568
commit 98026d109e

View file

@ -1095,6 +1095,9 @@ is reserved. Please choose a different one.".format(name))
# Comment out master, as it would override everything else. # Comment out master, as it would override everything else.
if self._topic_is_master(r.topic): if self._topic_is_master(r.topic):
fd.write("#{} = {}\n".format(topic, color)) fd.write("#{} = {}\n".format(topic, color))
# Also comment out rgb/bell, as it should not usually be set manually.
elif r.topic == "rgb/bell":
fd.write("# Set automatically when club status changes.\n#{} = {}\n".format(topic, color))
else: else:
fd.write("{} = {}\n".format(topic, color)) fd.write("{} = {}\n".format(topic, color))