element.io (matrix.org) room or discord bridge

482 views
Skip to first unread message

Jarshvor

unread,
Oct 15, 2021, 6:19:38 PM10/15/21
to CadQuery
So I've gathered from a couple of posts here that there seems to be a Discord room for Cadquery.

I don't use discord myself but I'm wondering if people would be interested in having a room on element.io (uses the matrix protocol/ecosystem).

The good thing about matrix/element is that it is an open protocol and platform, and there is even the possibility of bridging to IRC and discord rooms (and a bunch of other platforms).
So the discord room and the matrix one could easily coexist (actually mirrored), and thus reach a wider audience. This would be especially helpful for newcomers like myself to learn from others' questions or code examples.

(Although the google group is also good in this regard, it took me a while to find out it existed).

I'm sure all of this is already addressed by the discord room, but for those of us who would rather use on open platform, I think the ability to bridge a matrix room with the existing discord one would be a greatly beneficial solution.

Looking forward to your comments in this regard.
And as a newcomer, thanks again for this great tool!
I hope to get proficient with it soon and start posting examples.

Jeremy Wright

unread,
Oct 15, 2021, 8:54:13 PM10/15/21
to Jarshvor, CadQuery
I often don't have the time to keep up on what is happening on Discord, and so having a separate Matrix server would be something I probably wouldn't sign up for. So my preference would be the bridge with the Discord server. Another thing to keep in mind is that the CadQuery Discord is just a channel hosted on the Elmer server, which we don't administrate. I don't know whether or not we'll have the level of access we need to set up the bridge.

--
cadquery home: https://github.com/CadQuery/cadquery
post issues at https://github.com/CadQuery/cadquery/issues
run it at home at : https://github.com/CadQuery/CQ-editor
---
You received this message because you are subscribed to the Google Groups "CadQuery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cadquery+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cadquery/af7c47d6-68e5-49d5-aacb-a71e503540bbn%40googlegroups.com.

Adam Urbanczyk

unread,
Oct 16, 2021, 6:10:44 AM10/16/21
to CadQuery
Agreed, I sometimes even consider stopping with discord completely. Can you post a description on how to setup such a bridge so that we can check with the owner of the "server"?

Jarshvor

unread,
Oct 16, 2021, 12:54:27 PM10/16/21
to CadQuery
I believe the most basic bridge would not be a problem.

We simply invite the 'Discord Bridge bot' to both the matrix room and the discord one, and then run a couple commands.

1. I have just created a CadQuery room on matrix.org and invited the @_discord_bot:t2bot.io
2. You can invite the bot above to the appropriate Discord channel via the following link:
3. Make note of the Discord CadQuery ServerID and ChannelID by looking at its url (https://discordapp.com/channels/ServerID/ChannelID) and pass that info on to the Matrix side for bridging.

4. From the Matrix side do:
!bridge ServerID ChannelID.

5. At the Discord side, confirmation to accept the bridge has to be approved.
The Elmer server admins would have to do this last step I'm afraid, so do check to see if they'd accommodate.
(Apparently 'Manage Server' permissions may also be needed for step 2.)

I do hope this isn't too much of a hassle for the Elmer people and you guys. I do believe it will benefit the community in the long run.
Let me know if you need anything else.
Kind regards.

Jarshvor

unread,
Oct 16, 2021, 6:57:36 PM10/16/21
to CadQuery
Reviewing the documentation at https://t2bot.io/discord/ and asking around about who can invite the discord bot and accept the bridging, I have been told that "It requires someone with permission to manage the channel, which is often a server admin but doesn't need to be."

Sorry I don't have that much first hand experience from the Discord side of things, but do let me know if I can lend a hand anyhow.

Jeremy Wright

unread,
Oct 16, 2021, 7:45:38 PM10/16/21
to Jarshvor, CadQuery
I'm a channel admin, so I'll see if I can add the bot.

Jeremy Wright

unread,
Oct 18, 2021, 9:39:01 AM10/18/21
to CadQuery
I can't add the Matrix bot. It seems that you need to be a server admin and not just a channel admin.

Screenshot from 2021-10-18 09-37-53.png

Jarshvor

unread,
Oct 18, 2021, 11:33:02 AM10/18/21
to CadQuery
That is unfortunate. Perhaps we can let the Elmer people know of this, and kindly ask for their help for those two steps?
There is absolutely no rush of course, and this might be done whenever you all happen to coincide on discord or there are some other maintenance requirements.

I really appreciate the effort, and hate to waste your precious time with this menial issue.
I do believe a community should popup on matrix at some point or another, but as I said, there is no rush.

Adam Urbanczyk

unread,
Oct 26, 2021, 2:58:31 AM10/26/21
to CadQuery
We got the following question back from the admin:

Do you have a link to the GitHub/audit for that bot? I'm not familiar with it

Could you help with it?

Jeremy Wright

unread,
Oct 27, 2021, 9:28:51 PM10/27/21
to Adam Urbanczyk, CadQuery
An Elmer server moderator has added the Matrix bot to the channel. Is there a next step?


Jarshvor

unread,
Nov 14, 2021, 8:30:57 AM11/14/21
to CadQuery
Arggg..!! So sorry that I am just now seeing these replies. (I must have fiddled with the email notification settings and did not get these in my inbox).
I figured the discussion fizzled out. I sincerely apologize!

And yes Jeremy. Next step would be to bridge the room from the matrix side.
For that I would need the Cadquery ServerID and Channel ID on discord: (https://discordapp.com/channels/ServerID/ChannelID)

Let me know these two IDs and a good moment to initiate the bridging.
As the bridging needs to be confirmed from the Discord side, by "someone with permission to manage the channel, which is often a server admin but doesn't need to be."
This probably means a channel moderator could approve the bridging, but I cant be 100% sure we won't need the Elmer server mods for this.

---------------------
And Adam, if you were referring to any Github specific auditing logs on the repo, I am not sure.
If you just meant the repo with the source, it is here: https://github.com/t2bot/matrix-appservice-discord
In case it is still useful, even though the Elmer server mod has already added the bot.

Thanks again to both of you and sorry once more for not seeing these in time!
Gonna fix my email notifications.

Jeremy Wright

unread,
Nov 17, 2021, 9:32:22 AM11/17/21
to CadQuery
Server ID: 412182089279209474

Channel ID: 758341165287211088

I'm a channel mod/admin, so we'll have to see if it will let me approve the bridging.

Jarshvor

unread,
Nov 17, 2021, 6:08:10 PM11/17/21
to CadQuery
I've initiated the bridge attempt. Let me know if you see anything on the discord side,
or a good moment to try again.

Jeremy Wright

unread,
Nov 17, 2021, 7:40:12 PM11/17/21
to Jarshvor, CadQuery
I don't see the bridge attempt. How/where should it show up?

You received this message because you are subscribed to a topic in the Google Groups "CadQuery" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cadquery/z3GmFj5pSzQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cadquery+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cadquery/7dcc0110-465e-4e78-a837-a27fa81e9a29n%40googlegroups.com.

Jeremy Wright

unread,
Nov 25, 2021, 7:05:14 AM11/25/21
to CadQuery

Thanks for working to make this happen.

Jarshvor

unread,
Nov 25, 2021, 7:09:45 AM11/25/21
to CadQuery
(Edit: hit reply to author instead of Reply to all and the former is not visible. Sorry)

"Marking this thread as closed" now. Thanks for bearing with me and the process.
The Discord channel at the Elmer server is now bridged with the matrix room.

Do let me know if at some point I should make anyone mod or admin on the matrix side.

For others reading this thread, the room is public and you can preview it here:
https://view.matrix.org/room/!trPFMasOMDqcwYBXEy:matrix.org/
If you would like to join via matrix you can use this link:
https://matrix.to/#/#cadquery:matrix.org
Or if you are already on matrix simply search for the cadquery room via your client 'explore rooms' feature.

Jeremy Wright

unread,
Apr 15, 2022, 10:04:40 AM4/15/22
to Jarshvor, CadQuery
We are setting up a dedicated CadQuery Discord server. @Jarshavor would you be willing to help us set up the Matrix bridge for that server too? I'm the server owner, so it should be easier to get it done this time.

Jarshvor

unread,
Apr 24, 2022, 11:10:01 AM4/24/22
to CadQuery
Sorry, forgot to remind you the Matrix bot must have been invited and have joined to the new discord channel in order for me to initialize the bridge.
You can do that with this link: https://discordapp.com/api/oauth2/authorize?client_id=309408702530846730&scope=bot&permissions=607251456
Let me know and I'll try again.

Jeremy Wright

unread,
Apr 24, 2022, 12:55:35 PM4/24/22
to Jarshvor, CadQuery
I'm having some trouble with the link. It may be a bit.

Jeremy Wright

unread,
Apr 24, 2022, 2:03:55 PM4/24/22
to Jarshvor, CadQuery
Ok, the bot has been added to the channel.

Jarshvor

unread,
Apr 24, 2022, 2:22:22 PM4/24/22
to CadQuery
requested bridge now.

Jeremy Wright

unread,
Apr 24, 2022, 2:53:18 PM4/24/22
to Jarshvor, CadQuery
Please try again if you're still online.

Jeremy Wright

unread,
Apr 24, 2022, 3:00:45 PM4/24/22
to Jarshvor, CadQuery
Another admin approved the bot, so I think we're all set. Please let me know if you have trouble posting. Thanks for the help!
Reply all
Reply to author
Forward
0 new messages