Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
matrix:discord [2025/03/12 07:19] – created willy | matrix:discord [2025/03/13 14:07] (current) – willy | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Matrix | + | ===== D) Matrix |
- | [[https:// | + | [[https:// |
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, | 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, | ||
Line 79: | Line 79: | ||
First of all, generate the // | First of all, generate the // | ||
<code bash> | <code bash> | ||
- | ./mautrix-whatsapp | + | ./mautrix-discord |
</ | </ | ||
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 | + | /data/daemons/ |
</ | </ | ||
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): | ||
+ | < | ||
+ | guilds status | ||
+ | Discord bridge bot | ||
+ | List of guilds: | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | giulds bridge 283436219780825088 --entire | ||
+ | </ | ||
+ | |||
+ | To join individual channels, you need to grab the channel ID from the discord web app and issue the command: | ||
+ | < | ||
+ | !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: | + | * Start a chat with discordbot: |
- | * type "login qr" | + | * type "login-qr" |
- | * Scan the QR code with your whatsapp | + | * Scan the QR code with your discord |
- | + | ||
- | 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 CAPTCHA, in this case you will have to abort the login and go with the more complicated |
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=" | + | name=" |
- | description=" | + | description=" |
- | pidfile="/ | + | pidfile="/ |
command_background=true | command_background=true | ||
- | command="/ | + | command="/ |
- | command_args="/ | + | command_args=" |
command_user=" | command_user=" | ||
- | output_log="/ | + | output_log="/ |
- | output_err="/ | + | output_err="/ |
start_pre() { | start_pre() { | ||
- | cd / | + | cd / |
} | } | ||
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 / | + | chmod +x / |
- | rc-update add conduwuit-whatsapp | + | rc-update add conduwuit-discord |
</ | </ | ||