0xpr03 / voice-bridge

Ts3-Discord voice bridge
GNU Affero General Public License v3.0
17 stars 1 forks source link

Bot not join to discord voice channel #8

Closed raymand211092 closed 1 year ago

raymand211092 commented 1 year ago

Jun 02 11:39:49.832 WARN Failed to handle message, error: Client should be removed but does not exist Jun 02 11:39:49.833 WARN Failed to handle message, error: Client should be removed but does not exist Jun 02 11:40:49.690 WARN Out of order command packet, expected: 58, got: 59

0xpr03 commented 1 year ago

What steps did you take for this ?

Flakebi commented 1 year ago

FYI, there was a recent(-ish) fix in tsclientlib for out-of-order packets to get sorted correctly (https://github.com/ReSpeak/tsclientlib/commit/555895860a327bd860d9fb219658eb3fa325dcda).

0xpr03 commented 1 year ago

I'll have to update the dependencies with the recent rust version. Building on windows and MSVC seems to be totally broken currently without msys2 and mingw..

raymand211092 commented 1 year ago

What steps did you take for this ?

Follow this steps:

Then join a voice channel in discord, type ~join in a text channel the bot can access. The teamspeak side should already be connected based on your config.

0xpr03 commented 1 year ago

grafik yeah updating this fully will be fun

0xpr03 commented 1 year ago

@raymand211092 Can you please try out the migrate_serenity branch from #9 ? This one works for me. The discord join method changed to a slash command: /join_voice [voice channel].

raymand211092 commented 1 year ago

@raymand211092 Can you please try out the migrate_serenity branch from #9 ? This one works for me. The discord join method changed to a slash command: /join_voice [voice channel].

Sorry for my late reply...but now I'm on a sudden trip and I arrive on Monday...I try first thing without fail...Slds and thank you very much I will tell you when I try 🥲

raymand211092 commented 1 year ago

Bot not connect in Discord

2023-06-05T14:03:59.460768Z ERROR serenity::gateway::shard: [Shard [0, 1]] Disallowed gateway intents have been provided. 2023-06-05T14:03:59.460851Z ERROR serenity::client::bridge::gateway::shard_runner: Shard handler received err: Gateway(DisallowedGatewayIntents) 2023-06-05T14:03:59.463927Z WARN serenity::client::bridge::gateway::shard_queuer: Failed to cleanly shutdown shard 0 when sending message to shard runner: TrySendError { kind: Disconnected }

0xpr03 commented 1 year ago

Your bot is missing permissions. For example message content is still required (although I want to remove this, as slash commands are enough). grafik

https://discord.com/developers/applications -> \<Your Bot> -> Tab "Bot"

raymand211092 commented 1 year ago

If you're right...the bot has already been connected to Discord...but I write the command to him from the text room of the voice chat and he does not join the same

I tried

/join_voice [Mumble TS Bridge] /join_voice Mumble TS Bridge

What am I doing wrong? any other permits you need?

0xpr03 commented 1 year ago

I write the command to him from the text room of the voice chat and he does not join the same

That's the right approach, the channel name should give you an auto-complete from which you can pick the voice channel. That is the expected method. So it should be no normal chat message that everyone can read.

If it can't join your channel that should be visible in the logs. Does it have permissions to speak and join the voice channel ?

0xpr03 commented 1 year ago

grafik

raymand211092 commented 1 year ago

😅 Right I was copying and pasting the comando...Mil thanks it worked

0xpr03 commented 1 year ago

As a heads up: consider everything apart from the join command to be non-existing (play,mute,..). At least I want to remove that, together with the message-content permission when merging #9. They never had any real purpose - at least from my POV - nor testing. But people discovered them ;)