安装依赖
apt-get -y install libopus-dev ffmpeg
下载TS3AudioBot
mkdir ts3audiobot && cd ts3audiobot

wget https://splamy.de/api/nightly/projects/ts3ab/develop_linux_x64/download
解压TS3AudioBot
tar -zxf TS3AudioBot.tar.gz
启动Bot
./TS3AudioBot
设置自启动

创建文件:/lib/systemd/system/ts3audiobot.service

[Unit]
Description=TS3AudioBot
After=teamspeak.service

[Service]
Type=simple
Restart=no-failure
RestartSec=10
KillSignal=SIGINT
User=teamspeak
Group=teamspeak
WorkingDirectory=/opt/teamspeak3/ts3audiobot/
ExecStart=/opt/teamspeak3/ts3audiobot/TS3AudioBot

[Install]
WantedBy=multi-user.target

重新加载 systemd :

systemctl daemon-reload

开启自启动(可选):

systemctl enable teamspeak.service
启动 TeamSpeak :systemctl start teamspeak.service
停止 TeamSpeak :systemctl stop teamspeak.service
重启 TeamSpeak :systemctl restart teamspeak.service
开放端口:58913
http:// I P :58913
http://music.163.com/song/media/outer/url?id=[MUISC ID].mp3

Tags: none

New