Moved the coloring from <color>[text]<end> to <color>[test]</color>, which allows the discord module to reparse the messages more accurately

This commit is contained in:
2022-04-29 20:12:15 +02:00
parent fcea02e1c9
commit 3cade228fe
22 changed files with 177 additions and 421 deletions
@@ -29,7 +29,7 @@
},
"join": {
"en_US": "{char} has joined the private channel. {logon}",
"de_DE": "<orange>Online<end>: {char}. {logon}"
"de_DE": "<orange>Online</orange>>: {char}. {logon}"
},
"leave": {
"en_US": "<highlight>{char}</highlight> has left the private channel. {logoff}",
@@ -59,8 +59,8 @@ class TopicController:
def format_topic_message(self, topic):
time_string = self.util.time_to_readable(int(time.time()) - topic["created_at"])
return f"Topic: <highlight>{topic['topic_message']}<end> " \
f"[set by <highlight>{topic['created_by']['name']}<end>][{time_string} ago]"
return f"Topic: <highlight>{topic['topic_message']}</highlight> " \
f"[set by <highlight>{topic['created_by']['name']}</highlight>][{time_string} ago]"
@event(PrivateChannelService.JOINED_PRIVATE_CHANNEL_EVENT, "Show topic to characters joining the private channel")
def show_topic(self, _, event_data):