codetheweb / aoede

🎧 a self-hosted Spotify → Discord music bot
MIT License
296 stars 30 forks source link

I cant see if this has been fixed but it seems to not like my user id #34

Open MasterModz1243 opened 1 year ago

MasterModz1243 commented 1 year ago

Error: Error { tag: Tag(Default, 1), profile: Some(Profile(Uncased { string: "default" })), metadata: Some(Metadata { name: "TOML file", source: Some(File("C:\Users\me\Desktop\NotHax\aeode\config.toml")), provide_location: Some(Location { file: "src\lib\config.rs", line: 22, col: 14 }), interpolater: }), path: ["DISCORD_USER_ID"], kind: InvalidType(Str("629700611994157057"), "u64"), prev: None }

MasterModz1243 commented 1 year ago

this is my toml config DISCORD_TOKEN="Token" SPOTIFY_USERNAME="aa" SPOTIFY_PASSWORD="a" DISCORD_USER_ID="629700611994157057"

StellarJay77 commented 1 year ago

I had this same issue, turns out you don't need to put the quotation marks around the DISCORD_USER_ID

MasterModz1243 commented 1 year ago

@StellarJay77 now im getting Error: Error { tag: Tag::Default, profile: Some(Profile(Uncased { string: "default" })), metadata: None, path: [], kind: DuplicateField("discord_token"), prev: None }

MasterModz1243 commented 1 year ago

Error: Error { tag: Tag::Default, profile: Some(Profile(Uncased { string: "default" })), metadata: None, path: [], kind: DuplicateField("discord_token"), prev: None }

codetheweb commented 1 year ago

Just to be clear, is the toml config all on the same line or is each key pair on a separate line like the example?

MasterModz1243 commented 1 year ago

@codetheweb image

MasterModz1243 commented 1 year ago

Error: Error { tag: Tag::Default, profile: Some(Profile(Uncased { string: "default" })), metadata: None, path: [], kind: DuplicateField("discord_token"), prev: None }

this was fixed by putting it in lower case but now im getting $ '/c/Users/Fizz/Desktop/aoede/windows-latest-aoede.exe' Client ended: Http(UnsuccessfulRequest(ErrorResponse { status_code: 401, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("discord.com")), port: None, path: "/api/v10/users/@me", query: None, fragment: None }, error: DiscordJsonError { code: 0, message: "401: Unauthorized", errors: [] } }))

StellarJay77 commented 1 year ago

Did you try the other method using setx? If so, you may need to go into windows environment variables and delete the environment variable you created. Win+R > "C:\Windows\system32\rundll32.exe" sysdm.cpl,EditEnvironmentVariables

MasterModz1243 commented 1 year ago

@StellarJay77 yeah lol

MasterModz1243 commented 1 year ago

deleted em now

MasterModz1243 commented 1 year ago

thx

MasterModz1243 commented 1 year ago

it has the code grant but still comes up with image

StellarJay77 commented 1 year ago

Doesn't look like you authorized or invited your bot to your discord sever.

MasterModz1243 commented 1 year ago

wdym?

MasterModz1243 commented 1 year ago

image @StellarJay77

StellarJay77 commented 1 year ago

You need to generate an html link and invite your bot to your server. You select bot and system.control then I just gave my bot admin rights. Copy and paste the invite link into your browser and authorize the bot for your server.

On Sun, Feb 5, 2023, 2:34 p.m. Fizz @.***> wrote:

[image: image] https://user-images.githubusercontent.com/88443296/216849798-699bbb9a-1a46-48ef-a4d0-2f0c74d658e7.png @StellarJay77 https://github.com/StellarJay77

— Reply to this email directly, view it on GitHub https://github.com/codetheweb/aoede/issues/34#issuecomment-1418283586, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOVOEJVVM3VF5UBKS5DRG4LWWATI3ANCNFSM6AAAAAAUOHVPAA . You are receiving this because you were mentioned.Message ID: @.***>

MasterModz1243 commented 1 year ago

@StellarJay77 wheres system.control? image

StellarJay77 commented 1 year ago

Sorry applications.commands

On Sun, Feb 5, 2023, 2:55 p.m. Fizz @.***> wrote:

@StellarJay77 https://github.com/StellarJay77 wheres system.control? [image: image] https://user-images.githubusercontent.com/88443296/216850696-f37641af-d7c1-4d9e-9ce9-6b6916287301.png

— Reply to this email directly, view it on GitHub https://github.com/codetheweb/aoede/issues/34#issuecomment-1418287888, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOVOEJVOA3XC54XQWRLKMJ3WWAVXVANCNFSM6AAAAAAUOHVPAA . You are receiving this because you were mentioned.Message ID: @.***>

MasterModz1243 commented 1 year ago

Sorry applications.commands … On Sun, Feb 5, 2023, 2:55 p.m. Fizz @.> wrote: @StellarJay77 https://github.com/StellarJay77 wheres system.control? [image: image] https://user-images.githubusercontent.com/88443296/216850696-f37641af-d7c1-4d9e-9ce9-6b6916287301.png — Reply to this email directly, view it on GitHub <#34 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOVOEJVOA3XC54XQWRLKMJ3WWAVXVANCNFSM6AAAAAAUOHVPAA . You are receiving this because you were mentioned.Message ID: @.>

ok i did this but now it isnt adding to the servers

MasterModz1243 commented 1 year ago

is there a specific redirect or anything i need?

StellarJay77 commented 1 year ago

Nope, just copy the generated URL into a browser, sign into your discord account and assign the bot to a server you have admin access to.

On Sun, Feb 5, 2023, 3:10 p.m. Fizz @.***> wrote:

is there a specific redirect or anything i need?

— Reply to this email directly, view it on GitHub https://github.com/codetheweb/aoede/issues/34#issuecomment-1418291441, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOVOEJQRYKAVVXZTTKXGWWTWWAXOBANCNFSM6AAAAAAUOHVPAA . You are receiving this because you were mentioned.Message ID: @.***>

MasterModz1243 commented 1 year ago

@StellarJay77 I tried that it goes to the redirect and just doesn't add the bot

StellarJay77 commented 1 year ago

You have to have admin or owner privilages to the server you are trying to add the bot to.

On Sun, Feb 5, 2023, 4:20 p.m. Fizz @.***> wrote:

@StellarJay77 https://github.com/StellarJay77 I tried that it goes to the redirect and just doesn't add the bot

— Reply to this email directly, view it on GitHub https://github.com/codetheweb/aoede/issues/34#issuecomment-1418313741, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOVOEJUS2DVMF7THXMR7SRTWWA7U5ANCNFSM6AAAAAAUOHVPAA . You are receiving this because you were mentioned.Message ID: @.***>

MasterModz1243 commented 1 year ago

I tried a server I'm owner on and a server I'm admin on and neither worked

StellarJay77 commented 1 year ago

Not sure then if the bot is not being added to your server.

On Sun, Feb 5, 2023, 4:44 p.m. Fizz @.***> wrote:

I tried a server I'm owner on and a server I'm admin on and neither worked

— Reply to this email directly, view it on GitHub https://github.com/codetheweb/aoede/issues/34#issuecomment-1418327877, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOVOEJX7DINDJZNT2V24WYLWWBCOPANCNFSM6AAAAAAUOHVPAA . You are receiving this because you were mentioned.Message ID: @.***>

MasterModz1243 commented 1 year ago

Hopefully @codetheweb or someone can help then

codetheweb commented 1 year ago

It might be getting added to your guild, but it appears as offline until you're in a voice channel--could you double-check it's not just offline? (This behavior is confusing and I think it should probably be changed.)

MasterModz1243 commented 1 year ago

It 8snt I checked the offline and the logs

MasterModz1243 commented 1 year ago

When using the url from the console https://user-images.githubusercontent.com/88443296/217313653-f10a05e3-339b-4e2e-b553-0c35da3af854.mp4 When making own link https://user-images.githubusercontent.com/88443296/217315338-20e21639-a1eb-4ce0-bae9-18ce57e59851.mp4

StellarJay77 commented 1 year ago

For your own link you chose applications.commands.permissions.uupdate not applications.commands which is in the last column on the right.

MasterModz1243 commented 1 year ago

yh swapped but does the same thing

StellarJay77 commented 1 year ago

This isnt an issue with the application, it's with your bot being authenticated with your discord server. I noted that it wasn't requesting admin access either. It's like you don't have permissions on that account to add bots to your server.

MasterModz1243 commented 1 year ago

This isnt an issue with the application, it's with your bot being authenticated with your discord server. I noted that it wasn't requesting admin access either. It's like you don't have permissions on that account to add bots to your server.

how tf does that work lmao i tried on multiple servers

StellarJay77 commented 1 year ago

Don't know. I would suggest bringing it up in the discord community.

MasterModz1243 commented 1 year ago

Don't know. I would suggest bringing it up in the discord community.

hhmm, alright

MasterModz1243 commented 1 year ago

Tried new server and new bot

https://user-images.githubusercontent.com/88443296/217362304-6014b1ba-2ce8-40f8-adff-b7acd6d6125f.mp4

StellarJay77 commented 1 year ago

So you were able to get the bot to join the server?

MasterModz1243 commented 1 year ago

no

StellarJay77 commented 1 year ago

Maybe try a different browser. You won't be able to connect your Spotify account into the discord if you can't get the bot to join the server.

MasterModz1243 commented 1 year ago

wanna add me on discord and we speak there n i just log the outcome here? also imma try now

MasterModz1243 commented 1 year ago

the bot works (without commands) i tested it on an old bot

StellarJay77 commented 1 year ago

I'm working at the moment but I might be able to later. The way this all works is you run the application on your PC and it acts like a bridge between your Spotify account and the bot in your discord server. The bot is told to follow your user account into the voice channel you are connected to and stream the audio from Spotify to that channel. Until you can get a bot to join your discord server you won't be able to do anything.

MasterModz1243 commented 1 year ago

I'm working at the moment but I might be able to later. The way this all works is you run the application on your PC and it acts like a bridge between your Spotify account and the bot in your discord server. The bot is told to follow your user account into the voice channel you are connected to and stream the audio from Spotify to that channel. Until you can get a bot to join your discord server you won't be able to do anything.

Yeah i tried it on one of my old bot tokens that was already in the server and it did what it said on the box lol

MasterModz1243 commented 1 year ago

i think its a bug with my dev acc cuz i tried adding it from my alt and it didnt work