2023-11-08 更新 1954 阅读 
   温馨提示: 
  本文最后更新于2023年11月08日,已超过726天没有更新,若内容或图片失效,请留言反馈。 
 1. 介绍
TS3AudioBot是一个Teamspeak机器人项目,拥有包含播放音乐在内的众多功能。
2. 功能
- 播放歌曲历史
 - 列表项目
 - 多种语音订阅模式:包括客户和频道
 - 所有用户的播放列表管理
 - 强大的权限配置
 - 插件支持
 - Web Api
 - 多实例
 - 本地化(无中文)
 - 底配置的TS3客户端
 
3. 安装
Ubuntu/Debian:
apt install libopus-dev ffmpegArch Linux:
pacman -S opus ffmpegCentOS 7:
yum -y install epel-release rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm yum -y install ffmpeg opus-devel如果报错先输入
apt update下载源码并解压
wget https://github.com/Splamy/TS3AudioBot/releases/download/0.12.0/TS3AudioBot_linux_x64.tar.gz tar -zxvf TS3AudioBot_linux_x64.tar.gz使用下面两个代码开始运行
./TS3AudioBot //短暂运行调试 nohup ./TS3AudioBot //调试好了之后,用这个长期在线当你看到下面代码时,请直接确认或输入
y或者直接确认Do you want to set up an admin in the default permission file template? [Y/n]在次出现下面代码时,请粘贴一个管理员的
UID,并且确认。
获取UID方法:通过Teamspeak客户端的工具 → 身份,在找到你原来teamspeak管理员的身份,复制该身份的唯一UID即可。Please enter an admin uid在看到下面代码时,请输入你原来
Teamspeak服务器的IP地址确认Please enter the ip, domain or nickname (with port; default: 9987) where to connect to:该代码提示你服务器的密码,如没有密码,请直接确认
Please enter the server password (or leave empty for none):- 完成上述步骤,你的 
Teamspeak服务器里面会进来一个名为TS3AudioBot的机器人。至此,机器人配置结束 
4. 常用命令
# 更新配置
systemctl daemon-reload
# 设置开机启动
systemctl enable ts3audiobot.service
# 启动服务
systemctl start ts3audiobot.service
# 停止服务
systemctl stop ts3audiobot.service
# 重启服务
systemctl restart ts3audiobot.service
# 查看状态
systemctl status ts3audiobot.service5. 高级设置
机器人配置(登陆机器人网页后台)
首先在 teamspeak 服务器内私聊机器人,发送!api token机器人会回复一串秘钥
<19:02:12> "MusicBot": 8msl2xUosTY9YPW/b9xEkYvdrIR=:a56fsXSgdHN3LDBSfd3fDs58DIioTjkD- 登陆机器人网页后台,后台地址为
IP地址:58913 

- 粘贴机器人回复的秘钥,如何正确,在登陆框下方会出现三个绿色的框框,如下图
 

- 单击中间 
Jump to your Bots overview即可进入机器人设置
后面自己摸索着来吧,看不懂英文的朋友,请自行翻译就可以。
音乐可以添加别的网站的音乐地址,
也可以增加本地服务器的音乐,但是要在增加音乐时间,填写音乐的完整本地路径。 下面是在不登陆机器人网页后台,在
teamspeak客户端中的部分机器人指令!lists play music #播放名为 music 的音乐列表 !stop #停止音乐播放 !pause #音乐暂停 !volume 80 #设置音量为80% 更多机器人指令,可自行查阅 TS3AudioBot 文档
Warning: Undefined array key "HTTP_ACCEPT_LANGUAGE" in /www/wwwroot/zimoou.com/usr/themes/Feng/comments.php on line 5
Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/wwwroot/zimoou.com/usr/themes/Feng/comments.php on line 5
评论已关闭