refactor: move MessageBuilder snapshot test to IrcMessageHandler (#5654)
This commit is contained in:
@@ -0,0 +1,284 @@
|
||||
{
|
||||
"input": "@tmi-sent-ts=1726761013541;subscriber=1;id=aea562cc-1adf-47de-b656-0aaa245f1030;room-id=11148817;user-id=129546453;display-name=nerixyz;badges=subscriber/24;badge-info=subscriber/27;color=#FF0000;flags=;user-type=;emotes=25:1-5/25:9-13 :nerixyz!nerixyz@nerixyz.tmi.twitch.tv PRIVMSG #pajlada :😂Kappa😂 &Kappa a b",
|
||||
"output": [
|
||||
{
|
||||
"badgeInfos": {
|
||||
"subscriber": "27"
|
||||
},
|
||||
"badges": [
|
||||
"subscriber"
|
||||
],
|
||||
"channelName": "pajlada",
|
||||
"count": 1,
|
||||
"displayName": "nerixyz",
|
||||
"elements": [
|
||||
{
|
||||
"color": "System",
|
||||
"flags": "ChannelName",
|
||||
"link": {
|
||||
"type": "JumpToChannel",
|
||||
"value": "pajlada"
|
||||
},
|
||||
"style": "ChatMedium",
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "TextElement",
|
||||
"words": [
|
||||
"#pajlada"
|
||||
]
|
||||
},
|
||||
{
|
||||
"element": {
|
||||
"color": "System",
|
||||
"flags": "Timestamp",
|
||||
"link": {
|
||||
"type": "None",
|
||||
"value": ""
|
||||
},
|
||||
"style": "ChatMedium",
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "TextElement",
|
||||
"words": [
|
||||
"15:50"
|
||||
]
|
||||
},
|
||||
"flags": "Timestamp",
|
||||
"format": "",
|
||||
"link": {
|
||||
"type": "None",
|
||||
"value": ""
|
||||
},
|
||||
"time": "15:50:13",
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "TimestampElement"
|
||||
},
|
||||
{
|
||||
"flags": "ModeratorTools",
|
||||
"link": {
|
||||
"type": "None",
|
||||
"value": ""
|
||||
},
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "TwitchModerationElement"
|
||||
},
|
||||
{
|
||||
"color": "#ffff0000",
|
||||
"flags": "Username",
|
||||
"link": {
|
||||
"type": "UserInfo",
|
||||
"value": "nerixyz"
|
||||
},
|
||||
"style": "ChatMediumBold",
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "TextElement",
|
||||
"words": [
|
||||
"nerixyz:"
|
||||
]
|
||||
},
|
||||
{
|
||||
"emote": {
|
||||
"images": {
|
||||
"1x": "https://pajbot.com/static/emoji-v2/img/twitter/64/1f602.png"
|
||||
},
|
||||
"name": "😂",
|
||||
"tooltip": ":joy:<br/>Emoji"
|
||||
},
|
||||
"flags": "EmojiImage|EmojiText",
|
||||
"link": {
|
||||
"type": "None",
|
||||
"value": ""
|
||||
},
|
||||
"text": {
|
||||
"color": "Text",
|
||||
"flags": "Misc",
|
||||
"link": {
|
||||
"type": "None",
|
||||
"value": ""
|
||||
},
|
||||
"style": "ChatMedium",
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "TextElement",
|
||||
"words": [
|
||||
"😂"
|
||||
]
|
||||
},
|
||||
"tooltip": ":joy:<br/>Emoji",
|
||||
"trailingSpace": true,
|
||||
"type": "EmoteElement"
|
||||
},
|
||||
{
|
||||
"emote": {
|
||||
"images": {
|
||||
"1x": "https://static-cdn.jtvnw.net/emoticons/v2/25/default/dark/1.0",
|
||||
"2x": "https://static-cdn.jtvnw.net/emoticons/v2/25/default/dark/2.0",
|
||||
"3x": "https://static-cdn.jtvnw.net/emoticons/v2/25/default/dark/3.0"
|
||||
},
|
||||
"name": "Kappa",
|
||||
"tooltip": "Kappa<br>Twitch Emote"
|
||||
},
|
||||
"flags": "TwitchEmoteImage|TwitchEmoteText",
|
||||
"link": {
|
||||
"type": "None",
|
||||
"value": ""
|
||||
},
|
||||
"text": {
|
||||
"color": "Text",
|
||||
"flags": "Misc",
|
||||
"link": {
|
||||
"type": "None",
|
||||
"value": ""
|
||||
},
|
||||
"style": "ChatMedium",
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "TextElement",
|
||||
"words": [
|
||||
"Kappa"
|
||||
]
|
||||
},
|
||||
"tooltip": "Kappa<br>Twitch Emote",
|
||||
"trailingSpace": false,
|
||||
"type": "EmoteElement"
|
||||
},
|
||||
{
|
||||
"emote": {
|
||||
"images": {
|
||||
"1x": "https://pajbot.com/static/emoji-v2/img/twitter/64/1f602.png"
|
||||
},
|
||||
"name": "😂",
|
||||
"tooltip": ":joy:<br/>Emoji"
|
||||
},
|
||||
"flags": "EmojiImage|EmojiText",
|
||||
"link": {
|
||||
"type": "None",
|
||||
"value": ""
|
||||
},
|
||||
"text": {
|
||||
"color": "Text",
|
||||
"flags": "Misc",
|
||||
"link": {
|
||||
"type": "None",
|
||||
"value": ""
|
||||
},
|
||||
"style": "ChatMedium",
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "TextElement",
|
||||
"words": [
|
||||
"😂"
|
||||
]
|
||||
},
|
||||
"tooltip": ":joy:<br/>Emoji",
|
||||
"trailingSpace": true,
|
||||
"type": "EmoteElement"
|
||||
},
|
||||
{
|
||||
"color": "Text",
|
||||
"flags": "Text",
|
||||
"link": {
|
||||
"type": "None",
|
||||
"value": ""
|
||||
},
|
||||
"style": "ChatMedium",
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "TextElement",
|
||||
"words": [
|
||||
"&"
|
||||
]
|
||||
},
|
||||
{
|
||||
"emote": {
|
||||
"images": {
|
||||
"1x": "https://static-cdn.jtvnw.net/emoticons/v2/25/default/dark/1.0",
|
||||
"2x": "https://static-cdn.jtvnw.net/emoticons/v2/25/default/dark/2.0",
|
||||
"3x": "https://static-cdn.jtvnw.net/emoticons/v2/25/default/dark/3.0"
|
||||
},
|
||||
"name": "Kappa",
|
||||
"tooltip": "Kappa<br>Twitch Emote"
|
||||
},
|
||||
"flags": "TwitchEmoteImage|TwitchEmoteText",
|
||||
"link": {
|
||||
"type": "None",
|
||||
"value": ""
|
||||
},
|
||||
"text": {
|
||||
"color": "Text",
|
||||
"flags": "Misc",
|
||||
"link": {
|
||||
"type": "None",
|
||||
"value": ""
|
||||
},
|
||||
"style": "ChatMedium",
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "TextElement",
|
||||
"words": [
|
||||
"Kappa"
|
||||
]
|
||||
},
|
||||
"tooltip": "Kappa<br>Twitch Emote",
|
||||
"trailingSpace": true,
|
||||
"type": "EmoteElement"
|
||||
},
|
||||
{
|
||||
"color": "Text",
|
||||
"flags": "Text",
|
||||
"link": {
|
||||
"type": "None",
|
||||
"value": ""
|
||||
},
|
||||
"style": "ChatMedium",
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "TextElement",
|
||||
"words": [
|
||||
"a"
|
||||
]
|
||||
},
|
||||
{
|
||||
"color": "Text",
|
||||
"flags": "Text",
|
||||
"link": {
|
||||
"type": "None",
|
||||
"value": ""
|
||||
},
|
||||
"style": "ChatMedium",
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "TextElement",
|
||||
"words": [
|
||||
"b"
|
||||
]
|
||||
},
|
||||
{
|
||||
"background": "#ffa0a0a4",
|
||||
"flags": "ReplyButton",
|
||||
"link": {
|
||||
"type": "ReplyToMessage",
|
||||
"value": "aea562cc-1adf-47de-b656-0aaa245f1030"
|
||||
},
|
||||
"padding": 2,
|
||||
"tooltip": "",
|
||||
"trailingSpace": true,
|
||||
"type": "CircularImageElement",
|
||||
"url": ""
|
||||
}
|
||||
],
|
||||
"flags": "Collapsed",
|
||||
"id": "aea562cc-1adf-47de-b656-0aaa245f1030",
|
||||
"localizedName": "",
|
||||
"loginName": "nerixyz",
|
||||
"messageText": "😂Kappa😂 &Kappa a b",
|
||||
"searchText": "nerixyz nerixyz: 😂Kappa😂 &Kappa a b ",
|
||||
"serverReceivedTime": "2024-09-19T15:50:13Z",
|
||||
"timeoutUser": "",
|
||||
"usernameColor": "#ffff0000"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user