User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
matrix:discord [2025/03/12 07:19] – created willymatrix:discord [2025/03/13 14:07] (current) willy
Line 1: Line 1:
-===== Matrix Whatsapp Bridge =====+===== D) Matrix Discord Bridge =====
  
-[[https://discord.com/|Whatsapp]] needs no presentation. It's the de-facto standard for support //forums// and //chats//, gaming communities and much more. What i find annoying about Discord is the constand push to monetization and general slugginess of it's clients.+[[https://discord.com/|Discord]] needs no presentation. It's the de-facto standard for support //forums// and //chats//, gaming communities and much more. What i find annoying about Discord is the constand push to monetization and general slugginess of it's clients.
  
 While you don't strictly need to have the mobile client installed to use the bridge, it is by far the most practical way to achieve initial registration. After that, you can remove it from your phone. Additionally, if you don't want to use your real Discord account you can use a discord bot to login. While you don't strictly need to have the mobile client installed to use the bridge, it is by far the most practical way to achieve initial registration. After that, you can remove it from your phone. Additionally, if you don't want to use your real Discord account you can use a discord bot to login.
Line 79: Line 79:
 First of all, generate the //registration.yaml// file: First of all, generate the //registration.yaml// file:
 <code bash> <code bash>
-./mautrix-whatsapp -c  /data/conduwuit/mautrix-whatsapp-config.yaml -g+./mautrix-discord -c  /data/conduwuit/mautrix-discord-config.yaml -g
 </code> </code>
  
Line 87: Line 87:
 ===== Usage ===== ===== Usage =====
  
-The **whatsappbot** user should have been created automatically.+The **discordbot** user should have been created automatically.
  
 Good! Now you can run the bridge: Good! Now you can run the bridge:
 <code bash> <code bash>
-/data/daemon/mautrix-whatsapp/mautrix-whatsapp -c /data/conduwuit/mautrix-whatsapp-config.yaml+/data/daemons/conduwuit/mautrix-discord/mautrix-discord -c /data/conduwuit/mautrix-discord-config.yaml
 </code> </code>
  
 If all is well, your bridge should be up and running now. If all is well, your bridge should be up and running now.
 +
 +By default the bridge will initially bridge only a few DM chats. If you want to bridge //guilds// (also called servers), you need to go to the bot chat and issue the command //guilds status// to list guilds and their IDs, then //guild bridge << id >> --entire// (--entire will cause a bit of chaos for large guilds, use at your risk):
 +<code>
 +guilds status
 +Discord bridge bot
 +List of guilds:
 +
 + Polytopia (283436219780825088) - never bridge messages
 + Jellyfin (772232779534172171) - never bridge messages
 +
 +giulds bridge 283436219780825088 --entire
 +</code>
 +
 +To join individual channels, you need to grab the channel ID from the discord web app and issue the command:
 +<code>
 +!discord bridge << channel id >>
 +</code
 +
 +in a specific matrix room after adding the discordbot to it.
  
  
 ===== Login ===== ===== Login =====
 To login into whatsapp you need to: To login into whatsapp you need to:
-  * Start a chat with whatsappbot:chat.mydomain.com +  * Start a chat with discordbot:chat.mydomain.com 
-  * type "login qr" +  * type "login-qr" 
-  * Scan the QR code with your whatsapp on your phone+  * Scan the QR code with your discord on your phone.
- +
-You could install whatsapp on a Android Virtual Emulator, but it's discouraged and could lead to a ban of your account.+
  
-**Note:** if your usernames do not get popupated, you should do a //search username// in the whatsappbot chat.+There might cases where Discord ask for a CAPTCHAin this case you will have to abort the login and go with the more complicated //token// login described [[https://docs.mau.fi/bridges/go/discord/authentication.html|here]].
  
  
Line 116: Line 133:
 # Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
  
-name="conduwuit whatsapp bridge" +name="conduwuit discord bridge" 
-description="Conduwuit whatsapp Matrix Bridge" +description="Conduwuit discord Matrix Bridge" 
-pidfile="/run/conduwuit-whatsapp.pid"+pidfile="/run/conduwuit-discord.pid"
 command_background=true command_background=true
-command="/data/daemons/conduwuit/mautrix-whatsapp/mautrix-whatsapp+command="/data/daemons/conduwuit/mautrix-discord/mautrix-discord
-command_args="/data/conduwuit/mautrix-whatsapp-config.yaml"+command_args="-c /data/conduwuit/mautrix-discord-config.yaml"
 command_user="conduwuit:conduwuit" command_user="conduwuit:conduwuit"
-output_log="/var/log/conduwuit/conduwuit-whatsapp.log" +output_log="/var/log/conduwuit/conduwuit-discord.log" 
-output_err="/var/log/conduwuit/conduwuit-whatsapp.log"+output_err="/var/log/conduwuit/conduwuit-discord.log"
  
 start_pre() { start_pre() {
-        cd /data/daemons/conduwuit/mautrix-whatsapp+        cd /data/daemons/conduwuit/mautrix-discord
 } }
  
Line 137: Line 154:
 Make it executable and add to the proper runlevel: Make it executable and add to the proper runlevel:
 <code bash> <code bash>
-chmod +x /etc/init.d/conduwuit-whatsapp +chmod +x /etc/init.d/conduwuit-discord 
-rc-update add conduwuit-whatsapp default+rc-update add conduwuit-discord default
 </code> </code>
  
  
  

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information