Match old and new formats of reply rep
This commit is contained in:
parent
0cf1d26764
commit
2c93ff1e6d
4 changed files with 265 additions and 6 deletions
176
test/data.js
176
test/data.js
|
@ -1562,6 +1562,182 @@ module.exports = {
|
|||
attachments: [],
|
||||
guild_id: "1100319549670301727"
|
||||
},
|
||||
infinidoge_reply_to_ami_matrix_smalltext_reply_to_infinidoge: {
|
||||
type: 19,
|
||||
tts: false,
|
||||
timestamp: "2024-08-15T20:45:20.697000+00:00",
|
||||
referenced_message: {
|
||||
webhook_id: "1179987856631017473",
|
||||
type: 0,
|
||||
tts: false,
|
||||
timestamp: "2024-08-15T20:43:42.705000+00:00",
|
||||
pinned: false,
|
||||
mentions: [
|
||||
{
|
||||
username: "infinidoge1337",
|
||||
public_flags: 768,
|
||||
id: "197126718400626689",
|
||||
global_name: "Infinidoge",
|
||||
discriminator: "0",
|
||||
clan: null,
|
||||
avatar_decoration_data: null,
|
||||
avatar: "89c59de97fdb5f90999d86fed01f23fe"
|
||||
}
|
||||
],
|
||||
mention_roles: [],
|
||||
mention_everyone: false,
|
||||
id: "1273743950028607530",
|
||||
flags: 0,
|
||||
embeds: [],
|
||||
edited_timestamp: null,
|
||||
content: "> -# <:L1:1144820033948762203><:L2:1144820084079087647>https://discord.com/channels/813954820460642336/1100319550446252084/1273733346005880925 <@197126718400626689>:\n" +
|
||||
"> -# Neat that they thought of that\n" +
|
||||
'let me guess they got a lot of bug reports like "empty chest with no loot?"',
|
||||
components: [],
|
||||
channel_id: "1100319550446252084",
|
||||
author: {
|
||||
username: "Ami (she/her)",
|
||||
id: "1179987856631017473",
|
||||
global_name: null,
|
||||
discriminator: "0000",
|
||||
bot: true,
|
||||
avatar: "8b2ca50a10b39f4f908f536cd82d7953"
|
||||
},
|
||||
attachments: [],
|
||||
application_id: "684280192553844747"
|
||||
},
|
||||
pinned: false,
|
||||
nonce: "1273744360743108608",
|
||||
message_reference: {
|
||||
type: 0,
|
||||
message_id: "1273743950028607530",
|
||||
guild_id: "813954820460642336",
|
||||
channel_id: "1100319550446252084"
|
||||
},
|
||||
mentions: [],
|
||||
mention_roles: [],
|
||||
mention_everyone: false,
|
||||
member: {
|
||||
roles: [ "832496260219928577" ],
|
||||
premium_since: null,
|
||||
pending: false,
|
||||
nick: null,
|
||||
mute: false,
|
||||
joined_at: "2021-05-05T21:22:36.181000+00:00",
|
||||
flags: 0,
|
||||
deaf: false,
|
||||
communication_disabled_until: null,
|
||||
banner: null,
|
||||
avatar: null
|
||||
},
|
||||
id: "1273744361036841061",
|
||||
flags: 0,
|
||||
embeds: [],
|
||||
edited_timestamp: null,
|
||||
content: "Most likely",
|
||||
components: [],
|
||||
channel_id: "1100319550446252084",
|
||||
author: {
|
||||
username: "infinidoge1337",
|
||||
public_flags: 768,
|
||||
id: "197126718400626689",
|
||||
global_name: "Infinidoge",
|
||||
discriminator: "0",
|
||||
clan: null,
|
||||
avatar_decoration_data: null,
|
||||
avatar: "89c59de97fdb5f90999d86fed01f23fe"
|
||||
},
|
||||
attachments: [],
|
||||
guild_id: "813954820460642336"
|
||||
},
|
||||
infinidoge_reply_to_ami_matrix_smalltext_singleline_reply_to_infinidoge: {
|
||||
type: 19,
|
||||
tts: false,
|
||||
timestamp: "2024-08-15T20:45:20.697000+00:00",
|
||||
referenced_message: {
|
||||
webhook_id: "1179987856631017473",
|
||||
type: 0,
|
||||
tts: false,
|
||||
timestamp: "2024-08-15T20:43:42.705000+00:00",
|
||||
pinned: false,
|
||||
mentions: [
|
||||
{
|
||||
username: "infinidoge1337",
|
||||
public_flags: 768,
|
||||
id: "197126718400626689",
|
||||
global_name: "Infinidoge",
|
||||
discriminator: "0",
|
||||
clan: null,
|
||||
avatar_decoration_data: null,
|
||||
avatar: "89c59de97fdb5f90999d86fed01f23fe"
|
||||
}
|
||||
],
|
||||
mention_roles: [],
|
||||
mention_everyone: false,
|
||||
id: "1273743950028607530",
|
||||
flags: 0,
|
||||
embeds: [],
|
||||
edited_timestamp: null,
|
||||
content: "> -# <:L1:1144820033948762203><:L2:1144820084079087647>https://discord.com/channels/813954820460642336/1100319550446252084/1273733346005880925 <@197126718400626689>:" +
|
||||
" Neat that they thought of that\n" +
|
||||
'let me guess they got a lot of bug reports like "empty chest with no loot?"',
|
||||
components: [],
|
||||
channel_id: "1100319550446252084",
|
||||
author: {
|
||||
username: "Ami (she/her)",
|
||||
id: "1179987856631017473",
|
||||
global_name: null,
|
||||
discriminator: "0000",
|
||||
bot: true,
|
||||
avatar: "8b2ca50a10b39f4f908f536cd82d7953"
|
||||
},
|
||||
attachments: [],
|
||||
application_id: "684280192553844747"
|
||||
},
|
||||
pinned: false,
|
||||
nonce: "1273744360743108608",
|
||||
message_reference: {
|
||||
type: 0,
|
||||
message_id: "1273743950028607530",
|
||||
guild_id: "813954820460642336",
|
||||
channel_id: "1100319550446252084"
|
||||
},
|
||||
mentions: [],
|
||||
mention_roles: [],
|
||||
mention_everyone: false,
|
||||
member: {
|
||||
roles: [ "832496260219928577" ],
|
||||
premium_since: null,
|
||||
pending: false,
|
||||
nick: null,
|
||||
mute: false,
|
||||
joined_at: "2021-05-05T21:22:36.181000+00:00",
|
||||
flags: 0,
|
||||
deaf: false,
|
||||
communication_disabled_until: null,
|
||||
banner: null,
|
||||
avatar: null
|
||||
},
|
||||
id: "1273744361036841061",
|
||||
flags: 0,
|
||||
embeds: [],
|
||||
edited_timestamp: null,
|
||||
content: "Most likely",
|
||||
components: [],
|
||||
channel_id: "1100319550446252084",
|
||||
author: {
|
||||
username: "infinidoge1337",
|
||||
public_flags: 768,
|
||||
id: "197126718400626689",
|
||||
global_name: "Infinidoge",
|
||||
discriminator: "0",
|
||||
clan: null,
|
||||
avatar_decoration_data: null,
|
||||
avatar: "89c59de97fdb5f90999d86fed01f23fe"
|
||||
},
|
||||
attachments: [],
|
||||
guild_id: "813954820460642336"
|
||||
},
|
||||
sticker: {
|
||||
id: "1106366167788044450",
|
||||
type: 0,
|
||||
|
|
|
@ -55,7 +55,8 @@ INSERT INTO message_channel (message_id, channel_id) VALUES
|
|||
('1202543413652881428', '1160894080998461480'),
|
||||
('1207486471489986620', '1160894080998461480'),
|
||||
('1210387798297682020', '112760669178241024'),
|
||||
('1273204543739396116', '687028734322147344');
|
||||
('1273204543739396116', '687028734322147344'),
|
||||
('1273743950028607530', '1100319550446252084');
|
||||
|
||||
INSERT INTO event_message (event_id, event_type, event_subtype, message_id, part, reaction_part, source) VALUES
|
||||
('$X16nfVks1wsrhq4E9SSLiqrf2N8KD0erD0scZG7U5xg', 'm.room.message', 'm.text', '1126786462646550579', 0, 0, 1),
|
||||
|
@ -91,7 +92,8 @@ INSERT INTO event_message (event_id, event_type, event_subtype, message_id, part
|
|||
('$NB6nPgO2tfXyIwwDSF0Ga0BUrsgX1S-0Xl-jAvI8ucU', 'm.room.message', 'm.text', '1202543413652881428', 0, 0, 0),
|
||||
('$OEEK-Wam2FTh6J-6kVnnJ6KnLA_lLRnLTHatKKL62-Y', 'm.room.message', 'm.image', '1207486471489986620', 0, 0, 0),
|
||||
('$mPSzglkCu-6cZHbYro0RW2u5mHvbH9aXDjO5FCzosc0', 'm.room.message', 'm.text', '1210387798297682020', 0, 0, 1),
|
||||
('$qmyjr-ISJtnOM5WTWLI0fT7uSlqRLgpyin2d2NCglCU', 'm.room.message', 'm.text', '1273204543739396116', 0, 0, 0);
|
||||
('$qmyjr-ISJtnOM5WTWLI0fT7uSlqRLgpyin2d2NCglCU', 'm.room.message', 'm.text', '1273204543739396116', 0, 0, 0),
|
||||
('$W1nsDhNIojWrcQOdnOD9RaEvrz2qyZErQoNhPRs1nK4', 'm.room.message', 'm.text', '1273743950028607530', 0, 0, 0);
|
||||
|
||||
INSERT INTO file (discord_url, mxc_url) VALUES
|
||||
('https://cdn.discordapp.com/attachments/497161332244742154/1124628646431297546/image.png', 'mxc://cadence.moe/qXoZktDqNtEGuOCZEADAMvhM'),
|
||||
|
@ -134,7 +136,8 @@ INSERT INTO member_cache (room_id, mxid, displayname, avatar_url) VALUES
|
|||
('!cBxtVRxDlZvSVhJXVK:cadence.moe', '@Milan:tchncs.de', 'Milan', NULL),
|
||||
('!TqlyQmifxGUggEmdBN:cadence.moe', '@ampflower:matrix.org', 'Ampflower 🌺', 'mxc://cadence.moe/PRfhXYBTOalvgQYtmCLeUXko'),
|
||||
('!TqlyQmifxGUggEmdBN:cadence.moe', '@aflower:syndicated.gay', 'Rose', 'mxc://syndicated.gay/ZkBUPXCiXTjdJvONpLJmcbKP'),
|
||||
('!TqlyQmifxGUggEmdBN:cadence.moe', '@cadence:cadence.moe', 'cadence [they]', NULL);
|
||||
('!TqlyQmifxGUggEmdBN:cadence.moe', '@cadence:cadence.moe', 'cadence [they]', NULL),
|
||||
('!BnKuBPCvyfOkhcUjEu:cadence.moe', '@ami:the-apothecary.club', 'Ami (she/her)', NULL);
|
||||
|
||||
INSERT INTO lottie (sticker_id, mxc_url) VALUES
|
||||
('860171525772279849', 'mxc://cadence.moe/ZtvvVbwMIdUZeovWVyGVFCeR');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue