Adding a bridge for Discord/GroupMe

Hi. I'm a newbie to all of this and I'm trying to add a bridge to link chats between GroupMe and Discord. I found something on Github that claims to achieve said goal and I wanted to see if I could host the bot on Couldflare and I think I'd be using a worker to do the task, but I'm not really sure and am completely new to this. I haven't done anything other that create a worker in CloudFlare, but I haven't added anything to it yet because I have no idea what I'm doing. Would someone be able to help? Here is the bot I found: https://github.com/alejzeis/groupme-discord-bridge
GitHub
GitHub - alejzeis/groupme-discord-bridge: A bridge bot which connec...
A bridge bot which connects a GroupMe chat and a Discord Guild - GitHub - alejzeis/groupme-discord-bridge: A bridge bot which connects a GroupMe chat and a Discord Guild
4 Replies
Chaika
Chaika2y ago
Cloudflare Workers are a really cool platform, they run as V8 (same Javascript engine as Chrome/Chromium) Isolates, starting up on each request. Near infinite scaling, running in every one of cloudflare's 300+ locations, etc. The trade off is you are forced to that paradigm, running as V8, a browser like environment (not node.js), no local file system (too short lived for one to make sense anyway, etc). Not a generic node.js platform. Sadly, this means that bot would not run without major modifications, as it currently uses local files for storing data, and discord.js. Even if you got around that, that bot needs to connect to the Discord Gateway (Websocket - long lived) for processing messages, and Discord blocks Cloudflare Workers from that (it would also have to be implemented without discord.js, and using Durable Objects). Basically just a no go, sorry.
morenicano
morenicanoOP2y ago
Thank you so much! This at least lets me know this isn't the way to go. Do you have any recommendations? Is this just something I'll have to run locally? I'm still trying to figure out a way to bridge the two, however I can.
Chaika
Chaika2y ago
Run locally on a server or some platform like fly.io You need an offering with persistent storage. You'd need to build a docker container for fly.io and most platforms though, doesn't look like they have one prebuilt. Actually that's pretty old as well, not sure if it would still work
morenicano
morenicanoOP2y ago
Yeah, I noticed a comment on there asking if it still works. I think this was the first result to come up on Google when I searched. I kinda got Matrix to work in one direction with Discord and I was maybe gonna try to see if I can use it as a middle man to GroupMe if I can get them working that way. I just have people who are having learning curves with migrating to Discord, so I'm trying to set up a bridge so the two platforms talk with each other.
Want results from more Discord servers?
Add your server