1414# - Code -
1515# ----------------------------------------------------------------------------------------------------------------------
1616MESSAGE_TAG_MAPPING :dict [str :Callable ] = {
17- "@badge-info" : "badge_info" ,
18- "badges" : "badges" ,
19- "client-nonce" : "client_nonce" ,
20- "color" : "color" ,
21- "display-name" : "display_name" ,
22- "emotes" : "emotes" ,
23- "first-msg" : "first_msg" ,
24- "flags" : "flags" ,
25- "id" : "message_id" ,
26- "mod" : "mod" ,
27- "room-id" : "room_id" ,
28- "subscriber" : "subscriber" ,
29- "tmi-sent-ts" : "tmi_sent_ts" ,
30- "turbo" : "turbo" ,
31- "user-id" : "user_id" ,
32- "user-type" : "user_type" ,
33- "reply-parent-display-name" : "reply_parent_display_name" ,
34- "reply-parent-msg-body" : "reply_parent_msg_body" ,
35- "reply-parent-msg-id" : "reply_parent_msg_id" ,
36- "reply-parent-user-id" : "reply_parent_user_id" ,
37- "reply-parent-user-login" : "reply_parent_user_login" ,
38- "emote-only" : "emote_only" ,
17+ "@badge-info" : "badge_info" ,
18+ "badges" : "badges" ,
19+ "client-nonce" : "client_nonce" ,
20+ "color" : "color" ,
21+ "display-name" : "display_name" ,
22+ "emotes" : "emotes" ,
23+ "first-msg" : "first_msg" ,
24+ "flags" : "flags" ,
25+ "id" : "message_id" ,
26+ "mod" : "mod" ,
27+ "room-id" : "room_id" ,
28+ "subscriber" : "subscriber" ,
29+ "tmi-sent-ts" : "tmi_sent_ts" ,
30+ "turbo" : "turbo" ,
31+ "user-id" : "user_id" ,
32+ "user-type" : "user_type" ,
33+ "reply-parent-display-name" : "reply_parent_display_name" ,
34+ "reply-parent-msg-body" : "reply_parent_msg_body" ,
35+ "reply-parent-msg-id" : "reply_parent_msg_id" ,
36+ "reply-parent-user-id" : "reply_parent_user_id" ,
37+ "reply-parent-user-login" : "reply_parent_user_login" ,
38+ "emote-only" : "emote_only" ,
39+ "returning-chatter" : "returning_chatter"
3940}
4041
4142MESSAGE_TAG_CONVERSION_MAPPING :dict [str :Callable ] = {
5758 "user-type" : lambda value : value ,
5859 "reply-parent-display-name" :lambda value : value ,
5960 "reply-parent-msg-body" : lambda value : value ,
60- "reply-parent-msg-id" : lambda value : int ( value ) ,
61+ "reply-parent-msg-id" : lambda value : value ,
6162 "reply-parent-user-id" : lambda value : int (value ),
6263 "reply-parent-user-login" : lambda value : value ,
6364 "emote-only" : lambda value : bool (int (value )),
65+ "returning-chatter" : lambda value : bool (int (value )),
6466}
0 commit comments