Coder Social home page Coder Social logo

ts3audiobot's Introduction

TS3AudioBot

Docker

The docker container it's for devices running arm64 OS (like Raspberry Pi 4). It contains a pre-configured Teamspeak Audio Bot built by @Splamy, and i've configured it to my personal use, but there's an env table that you can use to personalize to your case. If you get any errors, open a issue. I'll try to help ASAP.

Building

To build it, just run the following command inside the folder.

docker build --rm -f "Dockerfile" -t ts3audiobot:latest "."

Usage/Examples

It's recommended to use docker-compose so it's easier to define the env variables.

version: '2'
services:
  TS3AudioBot:
    image: bacanhim/ts3audiobot:latest
    container_name: TS3AudioBot
    environment:
      - BOT_NAME=TS3AudioBot
      - SERVER_IP=localhost
    #   - SERVER_PORT= *optional
    #   - SERVER_PASSWORD= *optional
      - BOT_IDENTITY=uKAP2ngkcvaWOLwclJje0NdDEug=
      - YOUTUBE_SEARCH=ys
    #   - WEB_PORT=58913 *optional
      - ADMIN_GROUP=9
      - USER_GROUP=10
    ports:
    # USE THE SAME WEB_PORT HERE
      - "58913:58913/tcp"
    restart: always

Environment variables

ENV default description
BOT_NAME TS3AudioBot Change it according to your preference.
SERVER_IP localhost Set the server ip to connect to.
SERVER_PORT 9987 By default most Teamspeak servers use 9987, change it only if you know that is different.
SERVER_PASSWORD Server password in case it has. By default it has no password.
ADMIN_GROUP Identify the admin group for them to have full access to the bot features.
USER_GROUP Identify the user group for them to have access only to !add and !ys by default, read the @Splamy docs to change this behavior according to your preference.
BOT_IDENTITY uKAP2ngkcvaWOLwclJje0NdDEug= You should change this to avoid identity theft.
YOUTUBE_SEARCH ys !ys allows you to search on youtube a song and plays it. you can set this to whatever you like, but don't use the exclamation point. Just the the letter's, example "ys"
WEB_PORT 58913 Web port it's so you can control the bot through the website in case you want to.

ts3audiobot's People

Contributors

bacanhim avatar

Stargazers

 avatar  avatar

Watchers

 avatar

ts3audiobot's Issues

standard_init_linux.go:219: exec user process caused: exec format error

I get the following warning when executing [docker build --rm -f "Dockerfile" -t ts3audiobot:latest "."]

...
...
...
...
...
Step 11/16 : WORKDIR /TS3AudioBot
 ---> Using cache
 ---> c52d89298550
Step 12/16 : COPY data/ /TS3AudioBot/
 ---> 22f5bb18a7e5
Step 13/16 : RUN apt update &&     apt install wget libopus-dev ffmpeg python3-pip -y &&     pip install --upgrade yt_dlp &&    ln /usr/local/bin/yt-dlp /usr/local/bin/youtube-dl &&    wget https://splamy.de/api/nightly/projects/ts3ab/master_linux_arm64/download &&     tar -xf download && rm -r download &&     chown -R root:root /TS3AudioBot &&    chmod +x start.sh
 ---> [Warning] The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/arm/v6) and no specific platform was requested
 ---> Running in b5a02fe12023
standard_init_linux.go:219: exec user process caused: exec format error
The command '/bin/sh -c apt update &&     apt install wget libopus-dev ffmpeg python3-pip -y &&     pip install --upgrade yt_dlp &&    ln /usr/local/bin/yt-dlp /usr/local/bin/youtube-dl &&    wget https://splamy.de/api/nightly/projects/ts3ab/master_linux_arm64/download &&     tar -xf download && rm -r download &&     chown -R root:root /TS3AudioBot &&    chmod +x start.sh' returned a non-zero code: 1
root@raspberrypi:/home/teamspeakbot/TS3AudioBot# docker build --rm -f "Dockerfile" -t ts3audiobot:latest "."

The image's platform (linux/arm64/v8) does not match the detected host platform (linux/arm/v6), is there any fix to this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.