QiCuiHub / discord-audio-pipe

Route computer audio into a discord bot
MIT License
152 stars 17 forks source link

DAP wont fully connect #39

Closed jmiller15 closed 1 year ago

jmiller15 commented 1 year ago

I can see the bot in my audio channel but it isn't fully connecting and the mute button the the DAP menu is showing a spinning loading icon.

Other users are able to connect and speak in my channel. The bot has worked before and I have double checked permissions. Looks like discord servers are working fine and I also tried toggling between a few region overrides with no success.

log: 2023-03-21 20:16:37 Exception occurred during Voice Protocol voice server update handler Traceback (most recent call last): File "discord\state.py", line 102, in logging_coroutine File "discord\voice_client.py", line 295, in on_voice_server_update AttributeError: 'NoneType' object has no attribute 'close'

YourDNDPleasesMe commented 1 year ago

I'm having the same issue. Screenshot below. image

I've heard other music bots are having issues today from a discord update. Kenku.fm, for example, had issues today that required an update from the developers: https://www.reddit.com/r/OwlbearRodeo/comments/11ws9xa/kenku_fm_simply_not_playing_music/ and https://www.reddit.com/r/OwlbearRodeo/comments/11xwbgo/kenku_fm_not_accepting_token_code/

Thanks for your work on this application. It's my go-to for discord audio sharing, it's simple and fantastic. Please let me know if you have a donation page somewhere!

QiCuiHub commented 1 year ago

Thanks! Appreciate the kind words and no donation necessary. What version of dap.exe are you two using? I recently released https://github.com/QiCuiHub/discord-audio-pipe/releases/tag/2.3, to fix a discord breaking change, the 2.2 version no longer works.

YourDNDPleasesMe commented 1 year ago

Thank you - I think it was me. The screenshot was of the old version. I tried the new version after posting here and was running into problems, but that was because in troubleshooting the old version I had moved the token.

All is wokring now - completely PEBKAC. Thanks again. :)

lonelygoob commented 1 year ago

Seems Im still getting the spinning mute button/Cant hear audio issue. Looks like yourDNDPleaseMe is on windows. Im on Ubuntu.

Thanks!!

QiCuiHub commented 1 year ago

It might be caused by outdated dependencies, try redownloading the source code and update your python dependencies with something like pip3 install -r requirements.txt --upgrade

AndrewHopkinson commented 1 year ago

I had the same problem but downloading the latest version 2.3 fixed this issue. However, it only works on my windows 10 machine, not Windows 7, which is what I use to play my audio. :(

jmiller15 commented 1 year ago

Yes, this is working again with version 2.3

AdelKS commented 1 year ago

Hello, it seems that this issue is back again ? Or maybe I did not setup the right permissions for the bot ? I have added "Read messages/view channels", "Speak", "Connect"

QiCuiHub commented 1 year ago

I wasn't able to reproduce this issue, you might have to check for custom roles in the server, that is a common source of problems.

AdelKS commented 1 year ago

you might have to check for custom roles in the server

Thanks ! I removed the custom role given to the bot and it now works. Would be nice to add this information to an FAQ maybe :)

AdelKS commented 1 year ago

Actually it looks like it fails to connect if someone is already on the channel :thinking:

kiithwarrior commented 1 year ago

It might be caused by outdated dependencies, try redownloading the source code and update your python dependencies with something like pip3 install -r requirements.txt --upgrade

Thanks! This fixed my issue :)