forked from cadence/out-of-your-element
Make read-only Discord channels read-only on Matrix
This commit is contained in:
parent
f7e2c89e65
commit
a29d019d17
6 changed files with 111 additions and 7 deletions
19
test/data.js
19
test/data.js
|
@ -19,6 +19,24 @@ module.exports = {
|
|||
default_thread_rate_limit_per_user: 0,
|
||||
guild_id: "112760669178241024"
|
||||
},
|
||||
updates: {
|
||||
type: 0,
|
||||
topic: "Updates and release announcements for Out Of Your Element.",
|
||||
rate_limit_per_user: 0,
|
||||
position: 0,
|
||||
permission_overwrites: [{
|
||||
type: 0,
|
||||
id: "112760669178241024",
|
||||
deny: "2048",
|
||||
allow: "0"
|
||||
}],
|
||||
parent_id: null,
|
||||
nsfw: false,
|
||||
name: "updates",
|
||||
last_message_id: "1329413270196715564",
|
||||
id: "1161864271370666075",
|
||||
guild_id: "112760669178241024"
|
||||
},
|
||||
saving_the_world: {
|
||||
type: 0,
|
||||
topic: "Anything and everything archiving/preservation related",
|
||||
|
@ -55,6 +73,7 @@ module.exports = {
|
|||
url: {$url: "/icons/112760669178241024/a_f83622e09ead74f0c5c527fe241f8f8c.png?size=1024"}
|
||||
},
|
||||
"m.room.power_levels/": {
|
||||
events_default: 0,
|
||||
users: {
|
||||
"@test_auto_invite:example.org": 100
|
||||
},
|
||||
|
|
|
@ -19,7 +19,8 @@ INSERT INTO channel_room (channel_id, room_id, name, nick, thread_parent, custom
|
|||
('122155380120748034', '!cqeGDbPiMFAhLsqqqq:cadence.moe', 'cadences-mind', 'coding', NULL, NULL),
|
||||
('176333891320283136', '!qzDBLKlildpzrrOnFZ:cadence.moe', '🌈丨davids-horse_she-took-the-kids', 'wonderland', NULL, 'mxc://cadence.moe/EVvrSkKIRONHjtRJsMLmHWLS'),
|
||||
('489237891895768942', '!tnedrGVYKFNUdnegvf:tchncs.de', 'ex-room-doesnt-exist-any-more', NULL, NULL, NULL),
|
||||
('1160894080998461480', '!TqlyQmifxGUggEmdBN:cadence.moe', 'ooyexperiment', NULL, NULL, NULL);
|
||||
('1160894080998461480', '!TqlyQmifxGUggEmdBN:cadence.moe', 'ooyexperiment', NULL, NULL, NULL),
|
||||
('1161864271370666075', '!mHmhQQPwXNananMUqq:cadence.moe', 'updates', NULL, NULL, NULL);
|
||||
|
||||
INSERT INTO sim (user_id, username, sim_name, mxid) VALUES
|
||||
('0', 'Matrix Bridge', 'bot', '@_ooye_bot:cadence.moe'),
|
||||
|
|
|
@ -34,7 +34,7 @@ const discord = {
|
|||
[data.guild.data_horde.id, data.guild.data_horde]
|
||||
]),
|
||||
guildChannelMap: new Map([
|
||||
[data.guild.general.id, [data.channel.general.id]],
|
||||
[data.guild.general.id, [data.channel.general.id, data.channel.updates.id]],
|
||||
[data.guild.fna.id, []],
|
||||
[data.guild.data_horde.id, [data.channel.saving_the_world.id]]
|
||||
]),
|
||||
|
@ -43,6 +43,7 @@ const discord = {
|
|||
},
|
||||
channels: new Map([
|
||||
[data.channel.general.id, data.channel.general],
|
||||
[data.channel.updates.id, data.channel.updates],
|
||||
["497161350934560778", {
|
||||
guild_id: "497159726455455754"
|
||||
}],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue