Does anyone know any way to link players to a game server within discord that doesn't involve setting up a web host?
We're trying to set up a webhook for discord so it'll post an alert on a certain channel when servers go live or when staff are requested and there's none online, things like that. And ideally we want it to provide a link that people can click when that happens to just directly join the server.
Problem is discord seems to block anything that is the http:// or https:// protocol.
So I guess the question is... does byond have any sort of redirect functionality to join a server that isn't using a byond:// link?
Or is there any way this could easily be accomplished without setting up a webserver to do a redirect?
ID:2886692
Aug 27 2023, 5:33 pm
|
|
In response to Grind Knight
|
|
We're TRYING to make a discord bot. That's the entire reason for this.
My point is, in discord you cant post a byond:// link Discord blocks all hyperlinks that arent http:// or https:// I think it's a security feature of some kind. If you post a link that is byond://whatever.link.here, discord will convert it to plain text so it wont be clickable. So I need a way to join a byond server using an http:// or https:// link, or a way to redirect from an http:// or https:// link to a byond:// link that doesn't involve paying for a web server or leaving someone's PC on 24/7. Right now we can get it to post the server link, but discord converts it to plain text, so for someone to actually use it they have to open byond, do the open location function, and paste the server address. I want to make this simpler. |
A URL shortener is your best bet, however you'd need one that'll let you automate the creation process. At that point you'd probably be better off just dropping $2-3/month on a webserver that can handle it for you.
https://shorturl.at/ejEF0 -- this will log you into Eternia. |
In response to IceFire2050
|
|
I wrote that on my phone and completely missed that! Yeah, the second option is your best bet; Like James suggests. A webserver would be even better.
|
First, a Discord bot can listen for a specific command and then send the byond:// link in a response message. This way, users could use a command like !joinServer, and the bot will post the BYOND link.
Second, you could try using an URL shortener that allows custom protocols. This way, you can provide an http:// link that redirects to a byond:// link.
Third, (this is the most hacky idea) you can use a minimal HTML page that uses JavaScript to redirect to the byond:// link. Host the page somewhere, then post the HTTPS link in Discord. Clicking the link would open the HTML page, which then auto-redirects to the BYOND server.
Personally I would go with making a Discord bot.
Good luck!