Changes between Version 2 and Version 3 of en/NLPMatrixDiscord
- Timestamp:
- Jun 27, 2025, 6:28:18 PM (4 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
en/NLPMatrixDiscord
v2 v3 10 10 11 11 Connect to the Discord app at https://discord.com/channels/@me 12 and find out the user token and the room and Discord server (guild) IDs.12 and find out the user token and the room and the Discord server (guild) IDs. 13 13 14 14 === Discord user token … … 19 19 ''Network'' tab and filter the URL list for `api`. Reload the web page. 20 20 1. Choose one of the URLs in the list with type `xml` or `xhr`. Display the ''Request headers''. 21 1. Find `Authorization` in the header list - its value ,is the **user token**. It should be something like `HEWkw2HE329cdsIOAAKSLFoosd.cspdfpoutwBJDW304DAQWEu0sdyvbsasDV02dfsggd3Ie`.21 1. Find `Authorization` in the header list - its value is the **user token**. It should be something like `HEWkw2HE329cdsIOAAKSLFoosd.cspdfpoutwBJDW304DAQWEu0sdyvbsasDV02dfsggd3Ie`. 22 22 23 23 === Discord server/guild and room IDs 24 24 25 Navigate to theselected Discord room within your https://discord.com/channels/@me app. Look at the URL of the room.25 Navigate to a selected Discord room within your https://discord.com/channels/@me app. Look at the URL of the room. 26 26 It should look like 27 27 {{{ … … 29 29 }}} 30 30 The two numbers, `3254238502750491529` and `1650295748356024125` are the 31 **server ID** (also called guild ID) and **channel ID**.31 **server ID** (also called guild ID) and the **channel ID**. 32 32 33 33 == Create a NLP Matrix discordbot room 34 34 35 Login to NLP Matrixand create a new room named e.g. `Discord bridge bot`.35 Login to [https://nlp.fi.muni.cz/matrix NLP Matrix] and create a new room named e.g. `Discord bridge bot`. 36 36 Invite user `@discordbot:nlp.fi.muni.cz` to the room. You should see the message 37 37 {{{ … … 44 44 == Choose which Discord items should be mirrored 45 45 46 First, you need to log the`discordbot` to Discord on your behalf. Recall the47 ''user token'' that you have found in the pre vious section and in the NLP Matrix46 First, you need to log `discordbot` to Discord on your behalf. Recall the 47 ''user token'' that you have found in the preceding section and in the [https://nlp.fi.muni.cz/matrix NLP Matrix] 48 48 `Discord bridge bot` room enter the command: 49 49 {{{ … … 60 60 When logged in, you may connect as many Discord servers as you wish. 61 61 You don't even need to look for the server/guild ID at Discord. 62 Just ask discordbot to62 Just ask discordbot for a 63 63 {{{ 64 64 guilds status … … 72 72 ... 73 73 }}} 74 Now instruct discordbot to establish the bridge 74 Now instruct discordbot to establish the bridge to `FI MUNI` as 75 75 {{{ 76 76 guilds bridge 252345435334213123 --entire 77 77 }}} 78 shoud lead to 78 which shoud lead to the message 79 79 {{{ 80 80 Successfully bridged guild 81 81 }}} 82 and discordbot creating a number of new invites for you to NLP Matrix space named `Discord` and to new NLP Matrix room for each Discord room in the bridged Discord server.82 and discordbot creating a number of new invites for you to NLP Matrix space named `Discord` and to a new NLP Matrix room for each Discord room in the bridged Discord server. 83 83 84 84 [[br]] 85 85 86 That's it! Now you can manage Discord and Matrix room in one place!86 That's it! Now you can manage Discord and Matrix rooms in one place!