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:
+1
-1
@@ -48,7 +48,7 @@ class IgnCore:
|
||||
self.last_timer_event = 0
|
||||
self.start_time = int(time.time())
|
||||
self.major_version = "IGNCore v2.9"
|
||||
self.minor_version = "1"
|
||||
self.minor_version = "2"
|
||||
self.incoming_queue = FifoQueue()
|
||||
self.mass_message_queue = None
|
||||
self.conns = DictObject()
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ class Text:
|
||||
self.bot = registry.get_instance("bot")
|
||||
self.public_channel_service = registry.get_instance("public_channel_service")
|
||||
|
||||
def make_chatcmd(self, name, msg, style=""):
|
||||
def make_chatcmd(self, name: str, msg: str, style: str = "") -> str:
|
||||
msg = msg.strip()
|
||||
msg = msg.replace("'", "'")
|
||||
return f"<a {style} href='chatcmd://{msg}'>{name}</a>"
|
||||
|
||||
Reference in New Issue
Block a user