rayzrdev / Gameboi

A simple Discord bot made for Discord Hack Week 2019 with a plethora of small games you can play, as well as a global currency and rewards system!
MIT License
81 stars 13 forks source link

self hosted bot is not posting images #15

Closed MrLDasVino closed 1 year ago

MrLDasVino commented 1 year ago

I am not sure what I am doing wrong but, the bot has been activated via docker since the link to the jar file is dead, everything seems to be working however the bot isn't posting any images when trying to play a game here is an image Screenshot 2022-12-25 213443 Thanks for any help edit: permissions do allow the bot to embed and post files so that is not the issue

rayzr522 commented 1 year ago

hey there! i've fixed the Jenkins CI server so you're welcome to download the JAR from there again! as for self-hosting, you'll need to either expose the port that Gameboi's web server runs on to the public web (port 7000, by default) or run the bot behind some kind of reverse proxy, such as nginx if you want to secure traffic to the bot's webserver with SSL and point a domain name to it

whether you're doing this on a local machine or on a remote server, I highly recommend against just opening the port, as that will expose either your local machine's or your remote server's IP address. the quickest and safest bet is to pick up a cheap domain on namecheap or porkbun, set it up on a free plan of [https://cloudflare.com/], and point your domain name to your local machine or remote server's IP address with proxying on so that the original IP address is not publicly exposed

from there, it's just a matter of setting up something like nginx (the guide I linked should have you covered) to actually handle the traffic on port 443 and reverse proxy it to Gameboi

while the bot is technically self-hostable, there's a good deal of work necessary to do so now that Gameboi serves images via a web server, so you are of course always welcome to invite the already hosted version of Gameboi to your server to use with no hassle :)

if you do want to try and self-host your own version with a domain name, nginx, etc then feel free to join my discord server and I can help you if you run into any issues!