44# General Packages
55from __future__ import annotations
66from typing import Callable
7- from datetime import datetime
8- import time
97
108# Custom Library
119from AthenaColor import StyleNest , ForeNest , HEX
@@ -71,13 +69,13 @@ def twitch_message_constructor_tags(message_bytes:bytearray, bot_name:str) -> Tw
7169 # with tags enabled, we know that the first element of the list above contains all the user's tags
7270 # This enables us to loop them and assign them to the message
7371 # This is done to make them accessible to the command parsing
74- # The second part of the split message is the user definement . The user id is found in the tags
72+ # The second part of the split message is the user definition . The user id is found in the tags
7573 # IRC message string is found next
76- # The channel from which it is sent is also recieved .
77- # When the bot is only installed in one channel, this isn't usefull , but if a bot is used in multiple channels
78- # this is part of the usefull known context
74+ # The channel from which it is sent is also received .
75+ # When the bot is only installed in one channel, this isn't useful , but if a bot is used in multiple channels
76+ # this is part of the usefully known context
7977 # Finally all text should be clumped together again, to be searched though for a custom command
80- # This is to be done by the protocol class, not the message constructir
78+ # This is to be done by the protocol class, not the message constructor
8179
8280 tags , user , irc_message , channel , * text = content
8381 twitch_message :TwitchMessage = TwitchMessage (
@@ -95,7 +93,7 @@ def twitch_message_constructor_tags(message_bytes:bytearray, bot_name:str) -> Tw
9593 try :
9694 TAG_MAPPING [tag_name ](tm = twitch_message ,tag_value = tag_value )
9795 except KeyError :
98- print (StyleNest .Bold (ForeNest .Maroon (f"Unkown tag of '{ tag_name } ' found. Please create a bug report on the git repo" )))
96+ print (StyleNest .Bold (ForeNest .Maroon (f"Unknown tag of '{ tag_name } ' found. Please create a bug report on the git repo" )))
9997 pass
10098
10199 return twitch_message
0 commit comments