Giter Site home page Giter Site logo

azuracast / azurabot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ljgago/musicbot

11.0 7.0 4.0 59 KB

ARCHIVED: This project is not actively being worked on currently, and is seeking maintainers. Please contact the AzuraCast team if you are interested in maintaining this tool.

License: MIT License

Go 98.46% Dockerfile 1.54%

azurabot's Introduction

AzuraBot

AzuraBot is a Go-powered music playing bot specifically built for the AzuraCast radio software.

Using AzuraBot, you can easily play your radio station through a voice channel on Discord.

Installing

Step 1: Install Docker and Docker Compose

Your computer or server should be running the newest version of Docker and Docker Compose. You can use the easy scripts below to install both if you're starting from scratch:

wget -qO- https://get.docker.com/ | sh

COMPOSE_VERSION=`git ls-remote https://github.com/docker/compose | grep refs/tags | grep -oP "[0-9]+\.[0-9][0-9]+\.[0-9]+$" | tail -n 1`
sudo sh -c "curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose"
sudo chmod +x /usr/local/bin/docker-compose
sudo sh -c "curl -L https://raw.githubusercontent.com/docker/compose/${COMPOSE_VERSION}/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose"

If you're not installing as root, you may be given instructions to add your current user to the Docker group (i.e. usermod -aG docker $user). You should log out or reboot after doing this before continuing below.

Step 2: Pull the AzuraBot Docker Compose File

Choose where on the host computer you would like AzuraBot's configuration file to exist on your server.

Inside that directory, run this command to pull the Docker Compose configuration file.

curl -L https://raw.githubusercontent.com/AzuraCast/azurabot/master/docker-compose.sample.yml > docker-compose.yml

Step 3: Customize docker-compose.yml

Open the docker-compose.yml file and provide the necessary variables.

Step 4: Run Docker Compose

From the directory that contains your docker-compose.yml file, run these commands:

docker-compose up -d

azurabot's People

Contributors

afonsosantos avatar busterneece avatar ljgago avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

azurabot's Issues

Putting a request via the DiscordBot

Hi where using AzuraCast as radio server. And now where wondering if its possible to get a DiscordBot put requests directly into the AutoDJ or if a DJ is live put it into the Request line for the on air DJ to play.

playback started - but no sound

Hello,

I have installed everything according to the manuals.
The bot commands are working.
Bot can be called into a voicechannel and !np shows the tune that is verified to be broadcasting on the radiostream at that moment.
volume is set at 80 and.

all seems well but there is no sound.
the green circle i would expect to be there around the avatar is not there.

what can be going wrong?
any known issues or solutions?
what more information need I give someone to be able to help me out?

what I have noticed also is that if I change the app name on discordapp.com/developers/applications/me
it will not update that name inside the server

thnx and br

Error

Hello I installed the bot commands work but there an error When i Do !play 1 it show Starting playback of Lion Radio 24/7! The it just go back Ready to pay how do i fix this

AzuraBot hits invalid memory address or nil pointer dereference on !play {ID}

I've been testing around with the bot and I've done some debugging work to see why it doesn't play after numerous complaints from users.

I've pulled these logs, hopefully it might assist in resolving the issue once and for all.

bot_1                      | 2020/06/24 19:51:21 INFO: Mitchhh sent command 'play'
bot_1                      | 2020/06/24 19:51:22 INFO: Playing URL  https://crosshost.ml/radio/8010/radio.mp3?1593028277
bot_1                      | panic: runtime error: invalid memory address or nil pointer dereference
bot_1                      | [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x6ca295]
bot_1                      |
bot_1                      | goroutine 100 [running]:
bot_1                      | github.com/bwmarrin/discordgo.(*VoiceConnection).log(...)
bot_1                      |    /go/src/github.com/bwmarrin/discordgo/logging.go:86
bot_1                      | github.com/bwmarrin/discordgo.(*VoiceConnection).Speaking(0x0, 0x1, 0x0, 0x0)
bot_1                      |    /go/src/github.com/bwmarrin/discordgo/voice.go:82 +0x85
bot_1                      | main.(*Bot).Radio(0xc0000b22c0, 0xc000377800, 0x34, 0xc0001e9ef0)
bot_1                      |    /go/src/app/audio.go:32 +0xfb
bot_1                      | created by main.(*Bot).GlobalRadio
bot_1                      |    /go/src/app/audio.go:16 +0x70
azuracast_bot_1 exited with code 2

"The bot is not currently active."

Hello,
I've managed to add Azurabot to my Discord server, grant it the authorizations needed, and am now facing a couple issues.

Here's how my conversations with the bot have been for the past minutes :

  • Me : !join test_cast (test voice channel)
  • Me : !play my_station
  • Azurabot : Starting playback of my_station !
    [at this point, no sound, speaker deafened in the voice channel]
  • Me : !np
  • Azurabot : The bot is not currently active.
    [the bot still appears as active in Discord, no specific error in Docker Log]

Thanks for your help !

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.