请注意,本文编写于 1002 天前,最后修改于 23 天前,其中某些信息可能已经过时。
服务器端口
9987 UDP 默认语音服务器端口
10011 TCP ServerQuery raw 端口
10022 TCP ServerQuery SSH 端口 (3.3.0 以上版本服务端)
30033 TCP 文件传输端口
41144 TCP TSDNSTeamSpeak
- 官网:https://teamspeak.com/zh-CN/
- 客户端下载:https://teamspeak.com/zh-CN/downloads/
- 服务端下载:https://teamspeak.com/zh-CN/downloads/#server
- 汉化包地址:https://github.com/VigorousPro/TS3-Translation_zh-CN
- Overwolf:https://www.overwolf.com/teamspeak/
Linux 搭建教程
首先安装 bzip2 解压工具:
apt install bzip2
# 或
yum install bzip2本教程使用的服务器系统为 CentOS 7.9
由于 TeamSpeak 不能使用 root 用户,所以新建一个用户:
useradd ts3
# 然后使用 passwd ts3 设置密码创建目录并下载服务端:
cd /
mkdir teamspeak3
cd /teamspeak3
wget https://files.teamspeak-services.com/releases/server/3.13.7/teamspeak3-server_linux_amd64-3.13.7.tar.bz2解压:
tar -xjvf teamspeak3-server_linux_amd64-3.13.7.tar.bz2赋予权限:
chown -R ts3:ts3 teamspeak3-server_linux_amd64进入目录:
cd teamspeak3-server_linux_amd64/切换用户:
su ts3接受协议:
touch .ts3server_license_accepted启动服务器:
./ts3server_startscript.sh start
# 或自定义密码启动
./ts3server_minimal_runscript.sh serveradmin_password=<你的密码>启动后会出现类似信息:
Server Query Admin Account created
loginname= "登录昵称"
password= "密码"
apikey= "APIKey"
ServerAdmin privilege key created
token=管理员令牌开机自启
vim /etc/rc.local按 i 在最后添加:
/home/teamspeak/teamspeak/ts3server_startscript.sh start保存退出:
:wq重启服务器后 TeamSpeak 即可自动启动。
Mumble
创建用户:
adduser mumble添加权限:
sudo adduser mumble sudo切换用户:
su mumble进入目录:
cd /home/mumble安装:
sudo apt-get install mumble-server
sudo dpkg-reconfigure mumble-server开放端口:
64738TS3AudioBot
GitHub
https://github.com/Splamy/TS3AudioBot
命令文档
https://github.com/Splamy/TS3AudioBot/wiki/CommandSystem
搭建教程
安装依赖:
sudo yum -y install epel-release
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
sudo yum -y install ffmpeg opus-devel解压:
tar -xzf TS3AudioBot_linux_x64.tar.gz启动:
./TS3AudioBot
# 后台运行
nohup ./TS3AudioBot &常用配置
ts3audiobot.toml
[web]
hosts = ["*"]
port = 58913
[web.api]
enabled = true
[web.interface]
enabled = true
path = ""rights.toml
[[rule]]
groupid = []
useruid = []
"+" = "*"bot.toml
[connect]
server_password = { pw = "" }
channel_password = { }
client_version = { }
address = "*"获取 API Token
私聊机器人:
!api token登录 Web 面板:
http://服务器IP:58913输入 token 即可。
本地音乐
bots/default/playlists/网易云音乐播放
歌曲直链格式:
http://music.163.com/song/media/outer/url?id=歌曲ID.mp3指令系统
指令格式:
!<commandname> <parameter1> <parameter2>查看帮助:
!help command <commandname>开机自启
创建服务:
vim /etc/systemd/system/ts3audiobot.service写入:
[Unit]
Description=TS3AudioBot
After=teamspeak.service
[Service]
Type=simple
User=teamspeak
Group=teamspeak
KillSignal=SIGINT
Restart=on-failure
RestartSec=10
WorkingDirectory=/home/teamspeak/TS3AudioBot/
ExecStart=/home/teamspeak/TS3AudioBot/TS3AudioBot
[Install]
WantedBy=multi-user.target常用命令
更新配置:
systemctl daemon-reload开机启动:
systemctl enable ts3audiobot.service启动:
systemctl start ts3audiobot.service停止:
systemctl stop ts3audiobot.service重启:
systemctl restart ts3audiobot.service查看状态:
systemctl status ts3audiobot.serviceTS3AudioBot + 网易云 API
网易云 API
https://github.com/Binaryify/NeteaseCloudMusicApi
播放插件
https://github.com/ZHANGTIANYAO1/TS3AudioBot-NetEaseCloudmusic-plugin
查看插件:
!plugin list加载插件:
!plugin load 0插件指令
登录网易云:
!yun login播放歌曲:
!yun play [音乐名称]添加歌曲:
!yun add [音乐名称]播放歌单:
!yun gedan [歌单名称]播放歌单ID:
!yun gedanid [歌单ID]播放歌曲ID:
!yun playid [歌曲ID]下一首:
!yun next网盘下载
- Windows客户端
http://pan.sfwww.cn/?explorer/share/file&hash=5b71wjEd8X1MdG07Xt6NYswnLd-XHXFCNjmL4UEa4MGyyeXPH9BEpmt4uHk4pfZ1e2xl - Linux服务端
http://pan.sfwww.cn/?explorer/share/file&hash=f528VEovJfNhT-vhH1NI4rhuEpglGJXgWuNckbBfqzDL_q8pwl9HslvFjHpp0Iet5p7R - 汉化包
http://pan.sfwww.cn/?explorer/share/file&hash=99f1W3YExeHffKR6kolir9Q-qxk-pSVzIa1nS2oAz9VP68dLzxpv-EQeVN9eoOVOPq8s - 网易云API
http://pan.sfwww.cn/?explorer/share/file&hash=56f347y5B9Ayg_X34XNX2XvFH2OYRkd5mPweHNx9IYFD847vfeoWrrcwf0YlVbXrpXlU - 网易云插件
http://pan.sfwww.cn/?explorer/share/file&hash=174bcWhwapW_iAFe8xHCz-u6i9CbKmYF1hsqDersvaRkmaPBy8QPOIRM0oR8ji55gY5W - Windows整合包
http://pan.sfwww.cn/?explorer/share/file&hash=738e3f_tH3aJ68j3KEv1BlU64NWzjpgCmzptG-byURaQXLg3GXnzr4iKP7gLZ1zyJ2EQ
のBlog