-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
General Setup Errors #1
Comments
Are you launching correctly? You should run "node app.js" and it should run.
…On Thu, Jul 12, 2018, 22:04 Nedihardt97 ***@***.***> wrote:
upon launching the app, the following is output:
[image: image]
<https://user-images.githubusercontent.com/25507769/42670217-84f5dfcc-8627-11e8-846e-d3ed335bd147.png>
the line in question contains the following:
const Discord = require("discord.js");
commenting this line out causes the same error to appear in the next line,
and the next, and so on until all the dependency checkers are commented out
and the system begins outputting errors in the middle of elements at
anywhere a colon (:) is
Attempting to run via a node.js administrator cmd prompt version 8.11.0
All dependencies are installed
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFtT5n1heZzDhaSP14UiHDgw7MHcGB0pks5uGA5YgaJpZM4VOOj->
.
|
ok, running it like that appears to allow the system to create the config file (loading values from app.js) and launch. However, it gets stuck at the output of: Express now listening for requests sending a message to discord or groupme fails to relay. |
Yeah, sorry for lack of documentation. First make sure you have created a discord bot and invited it to your server (see this handy page). You'll need to get the token too and put that in The Next you need to create a groupme bot, (go here, and click on "create bot" (once you've signed into your groupme account)). The "callback URL" field is the most important, as that needs to be the URL of whatever device you'll be running the bridge on so GroupMe can send messages to the bridge. The bridge will always listen at So, once you've created the GroupMe bot, you'll need to copy the Finally you'll need the discord Guild ID and Channel ID that you want to bridge. Make sure you have And that should be it! It is a bit complicated, and it's designed to run on a server not a home computer as GroupMe has to be able to connect to the bridge to send it messages. There's no way around that. If you want to run it at home you'll need to port forward and such. Also it can only bridge one channel to one group, which is quite a limitation. Let me know if there's further issues, I'll be happy to help. |
Right, I think the main issue is the groupme side callback URL since I'm directly hosting the bridge on my desktop. |
ok, so I gave it http://MY.PC.IP.ADDRESS:PORT on the groupme side and the API took it, but it's still not relaying the messages |
The port will be the value of |
well, I added in the port forwarding in my config, but still no change |
Could you post your config? (You can redact the tokens and such)
…On Fri, Jul 13, 2018, 14:58 Nedihardt97 ***@***.***> wrote:
well, I added in the port forwarding in my config, but still no change
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFtT5mmjpsHy82XD65o7UuBG7swgEd9pks5uGPvbgaJpZM4VOOj->
.
|
I've set the firewall rule, added the service in the router config, entered the port into the app config, and entered the IP:Port into the groupme callback URL, and it still won't work |
Does discord to GroupMe work? That should work as it's independent of
callback and such.
…On Fri, Jul 13, 2018, 22:08 Nedihardt97 ***@***.***> wrote:
I've set the firewall rule, added the service in the router config,
entered the port into the app config, and entered the IP:Port into the
groupme callback URL, and it still won't work
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFtT5kvuBNCTARRsKaFXJFDwwcwBMwzrks5uGWCngaJpZM4VOOj->
.
|
Negative, doesn't relay either direction |
Does the bot show up online in the server? Are you sure the channel and
guild IDs are correct?
…On Mon, Jul 16, 2018, 01:27 Nedihardt97 ***@***.***> wrote:
Negative, doesn't relay either direction
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFtT5rRsUdVzCdds2JGQCjC1j2pLbi2hks5uHDJOgaJpZM4VOOj->
.
|
Yes, it showed up as online on the discord server, double checked the IDs. Program simply didn't do anything. |
Alright, I'll see if it still works for me or not, I'm probably going to
end up rewriting it anyway to be more clean and documented.
…On Tue, Jul 17, 2018, 09:58 Nedihardt97 ***@***.***> wrote:
Yes, it showed up as online on the discord server, double checked the IDs.
Program simply didn't do anything.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFtT5gjJB5DEGLg6iRjIWWWmm4d-o03gks5uHfuhgaJpZM4VOOj->
.
|
Big thumbs up for "more clean and documented," haha. Any timeline on that? I'm probably gonna try to get this set up for me tonight but if you're almost done with a rewrite I could wait a couple days |
I think it will be ready within a few days.
…On Wed, Jul 25, 2018, 10:36 abcasada ***@***.***> wrote:
Big thumbs up for "more clean and documented," haha. Any timeline on that?
I'm probably gonna try to get this set up for me tonight but if you're
almost done with a rewrite I could wait a couple days
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFtT5pEhT0E8QjZpfPqQmqHxkZXamNYoks5uKJCPgaJpZM4VOOj->
.
|
Update: I've looked at the code and there really isn't anything to rewrite at all. I've gone ahead and updated the dependencies as there were some security vulnerabilities. I'm working on writing a setup guide in the README so people can actually set the bridge up for themselves. |
README has been updated with a setup guide. I've re-set up my own bridge following the steps and it works correctly. I've also made some small changes to the code, probably the biggest is removing "callbackURLPrefix" which was confusing and simply making it "callbackURL" to set the whole callback URL that the bridge will listen on, (it's explained better in the README). I think everything should be good to go, let me know if there are any additional problems, I'll be happy to help. A Notice, If you tried the bridge before and it wasn't working, please re-download the project and start from scratch using the new code as that might help. |
Great, I'm looking forward to trying to get it going tonight. Thanks for doing the README, that should be a lot of help. |
I am still having trouble understanding the server portion and would appreciate the help. I set up a server using Vultr, I don't have any firewall setup, so felt no need to open a port. So I kept the listenport at 8088. Installed the files on the server and it currently says "Discord Client Ready" But I don't know what URL to put in the Callback URL field in the GroupMe Developers website. |
@jdas1996 Assuming you've already set the discord settings in the config file (such as the bot token, username, guild and channel IDs): The callback URL on the GroupMe site should be in the form of If you care about security however it's recommended you run a webserver such as Nginx or Apache on the server with an SSL cert so you can use HTTPS. You can then configure Nginx to forward requests from That way all the GroupMe messages sent from the GroupMe service to the bridge bot are encrypted over HTTPS, and then Nginx takes those HTTPS requests and passes them to localhost where the bot is running. There's a lot of guides on how to set this up, I can send more detailed instructions on how to do this if you are interested. |
upon launching the app, the following is output:
the line in question contains the following:
const Discord = require("discord.js");
commenting this line out causes the same error to appear in the next line, and the next, and so on until all the dependency checkers are commented out and the system begins outputting errors in the middle of elements at anywhere a colon (:) is
Attempting to run via a node.js administrator cmd prompt version 8.11.0
All dependencies are installed
The text was updated successfully, but these errors were encountered: