Sinusbot

Applications
Report Issue

Musicbot for Discord and Teamspeak.

Contributors:
README

SinusBot

Their Site

Listen to your favorite music together with all of your friends

Welcome the Simple, Elegant & great sounding TS3- and Discord-Bot!

First startup

On first startup wait until this message in the console appears: TSClient quit. Then press restart. Now the SinusBot will fully startup and you can login to the WebUI.

Server Ports

1 port is required to run SinusBot.

Port default
Game 8087

Side notes

This uses a custom image.

Docker Images (1)
Name Image
sinusbot ghcr.io/ptero-eggs/yolks:bot_sinusbot
Startup Command
./sinusbot --override-password="${OVERRIDE_PASSWORD}"
Variables (1)

Password

Password for admin account.

Environment:
OVERRIDE_PASSWORD
Default:
None
User Viewable:
User Editable:
Rules:
required|string|max:20
Installation Script
Container: ghcr.io/ptero-eggs/installers:debian
Entrypoint: bash
#!/bin/bash
# Sinusbot Installation Script
#
# Server Files: /mnt/server
apt -y update
apt -y --no-install-recommends install ca-certificates bzip2 wget tar curl jq
apt -q clean all

#Create needed directories
mkdir -p /mnt/server/TeamSpeak3-Client-linux_amd64/plugins
mkdir /mnt/server/youtube-dlp

cd /mnt/server

#Download Sinusbot
wget -qO - https://www.sinusbot.com/dl/sinusbot.current.tar.bz2 | tar xj


#Download Latest TeamSpeak Client
#TS_VERSION=$(curl https://teamspeak.com/versions/client.json | jq -r '.linux.x86_64.version')
#TS_DL_LINK=$(curl https://teamspeak.com/versions/client.json | jq -r '.linux.x86_64.mirrors."teamspeak.com"')

# Sinusbot is not yet updated...
TS_VERSION=3.5.6
TS_DL_LINK=https://files.teamspeak-services.com/releases/client/3.5.6/TeamSpeak3-Client-linux_amd64-3.5.6.run

echo -e "downloading teamspeak version ${TS_VERSION}"
echo -e "running 'wget ${TS_DL_LINK}'"

wget ${TS_DL_LINK}

# Install TeamSpeak Client
chmod 0755 TeamSpeak3-Client-linux_amd64*.run
./TeamSpeak3-Client-linux_amd64*.run --tar xfv -C TeamSpeak3-Client-linux_amd64

## Cleaning up 

rm TeamSpeak3-Client-linux_amd64*.run
# Remove glx-integration lib
rm TeamSpeak3-Client-linux_amd64/xcbglintegrations/libqxcb-glx-integration.so

#Install Sinusbot
chmod +x sinusbot
cp config.ini.dist config.ini
sed -i "s|^TS3Path.*|TS3Path = \"/home/container/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64\"|g" config.ini
echo 'YoutubeDLPath = "/home/container/youtube-dlp/youtube-dlp"' >> config.ini

#Install Sinusbot plugin
cp plugin/libsoundbot_plugin.so TeamSpeak3-Client-linux_amd64/plugins

#Download youtube-dlp
cd /mnt/server/youtube-dlp
wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O youtube-dlp
chmod a+rx youtube-dlp

echo "-----------------------------------------"
echo "Installation completed..."
echo "-----------------------------------------"