• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Ts geht aber Discord

Bandes

Member
Hallo zusammen, gibts hier noch Modder ?
Mein Sinusbot geht nur noch im TS aber im Discord nicht mehr.
Mein Anbieter sagt es liegt an der APi
Was könnt ihr sagen ?
Also was ist wirklich los
2024-09-22T11:59:31+02:00 state instable for discord connection
2024-09-22T11:59:27+02:00 state instable for discord connection
2024-09-22T11:59:24+02:00 PLAY [admin] dcbf0f81-89f9-44a4-af69-1725f9247618 OK
2024-09-22T11:59:18+02:00 BOT-CONFIG [admin] NAME CHANPW CHAN ANNOUNCE DESCRIPTION ANNOUNCESTR TTSURL CHATIGNPRIV CHATIGNCHAN CC OK
2024-09-22T11:59:11+02:00 PLAY [admin] da5a406d-b52d-4f23-a1e6-677092559d8e OK
2024-09-22T11:58:09+02:00 script command loaded
2024-09-22T11:58:08+02:00 script sinusbot-commands loaded
2024-09-22T11:58:08+02:00 [sinusbot-commands:114:12] SinusBot v1.0.0-beta.16-ba60e37 on linux
2024-09-22T11:58:08+02:00 [sinusbot-commands:113:12] Loaded SinusBot Commands v1.1.2 by Jonas Bögle (@irgendw
 

attax420

New Member
I normally would recommend to use the official sinusbot docker image, but unfortunately it is outdated and requires you to compile a newer python version inside the container to get it running and a lot of the packages are very outdated.
But because you are very lucky today, I went through the hassle to recompile python on the container and replace the existing python 3.7 with a much newer python 3.11.10 so it should be futureproof for a while. I also updated yt-dlp and all packages inside the container. The default admin password is generated on first start of the container, just check your logs or attach to the container so you can see it. Otherwise you always can run the container with the "OVERRIDE_PASSWORD" env set to the desired admin password.

You can pull the image and start the container by entering:
Bash:
"docker run -v scripts:/opt/sinusbot/scripts \
-v data:/opt/sinusbot/data attax/sinusbot:2024_09"
in your webserver terminal.

The bot listens on port 8087 for http traffic so i would strongly advise to put the container behind a reverse proxy (apache2, nginx, traefik, etc.) and enforce HSTS. You obviously need a SSL certificate, which you can either generate yourself or get from LetsEncrypt.

I would recommend to use the "nginx-proxy" and "nginx-proxy-acme" docker containers to automate the process.
In this case just add the following variables for the sinusbot container:
Bash:
VIRTUAL_HOST="bot.yourdomain.com"
LETSENCRYPTHOST="bot.yourdomain.com"
VIRTUAL_PORT="8087"

Here is a short example on how to run the container so it is accessible via bot.mydomain.com, the admin password set to "1234" and automatically deployed HTTPS with enforced HSTS via a free LetsEncrypt cert. After installing docker and all dependencies just run the following commands in the terminal. Make sure nothing else is running on port 80 or 443, otherwise you have just have to replace the ports in the first command with the disired ones (only change the first number, so if you want to use port 8080 instead of 80 it is "8080:80". Also dont forget to replace mydomain.com with you own domain.

IMPORTANT: I would strongly recommend to add an A record to your dns server with the host "*" poitnting to the ip of your server, otherwise it might come to issues.

Bash:
 docker run --detach \
--name nginx-proxy \
--publish 80:80 \
--publish 443:443 \
--volume certs:/etc/nginx/certs \
--volume html:/usr/share/nginx/html \
--volume /var/run/docker.sock:/tmp/docker.sock:ro \
    nginxproxy/nginx-proxy

Bash:
docker run --detach \
--name nginx-proxy-acme \
--volumes-from nginx-proxy \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
--volume acme:/etc/acme.sh \
--env "DEFAULT_EMAIL=[EMAIL][email protected][/EMAIL]" \
    nginxproxy/acme-companion

Bash:
docker run -e VIRTUAL_HOST="bot.mydomain.com" \
-e LETSENCRYPT_HOST="bot.mydomain.com" \
-e VIRTUAL_PORT="8087" \
-e OVERRIDE_PASSWORD="1234" \
-v scripts:/opt/sinusbot/scripts \
-v data:/opt/sinusbot/data \
attax/sinusbot:2024_09

Meld dich wenn du noch Fragen hast.

MfG aTTaX
 
Top