galnir / Master-Bot

A Discord music bot and dashboard with slash commands, playlist support, Spotify, music quiz, saved playlists, lyrics, gifs and more
MIT License
464 stars 373 forks source link

Gif commands not working #773

Closed Natemo2625 closed 1 year ago

Natemo2625 commented 1 year ago

IMPORTANT : DO NOT SKIP THIS STEPS AND DO NOT DELETE THEM. WE CAN NOT HELP YOU IF YOU DO NOT PROVIDE INFORMATION AND STEPS TO REPRODUCE

Do not open an issue if you simply "copied" code over to your bot/another bot. This is absolutely not recommended and will cause bugs. Also do not open an issue if you modified code and added features and now it's not working right. This is because I can't figure it out and don't have the time to read your code and find out what you did wrong.

Describe the bug A clear and concise description of what the bug is. No matter what gif command I use, I can't get any of them to work To Reproduce Steps to reproduce the behavior:

  1. Use any gif command

Expected behavior A clear and concise description of what you expected to happen. It should reply with the desired gif Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here. So far, both the cat and doggo gif commands hang up and it says "The application did not respond", and others reply with their respective "Something went wrong" message and a status code 400 error in terminal. I have checked my API key for tenor and it is still active, and I have been using it for a long time, so I don't think that's the issue. Any help would be much appreciated, thank you in advance!

Bacon-Fixation commented 1 year ago

Howdy @Natemo6348,

indeed a lot has changed :D , take a look a Master-Bot/packages/bot/logs/ (or Master-Bot/logs/ if running in docker container) and see what the error is, not sure how long ago you made tenor api key, but the gif commands shifted to a v2 key at some point, it is highly likely the code 400 listed in the logs is related to the API key

02-21-2023 20:20:20 error: Request failed with status code 400

you can create a v2 key by heading to https://developers.google.com/tenor/guides/quickstart and clicking "Tenor Api Key" and selecting your app and editing your .env file with the new key

i hope this helps

if that doesn't help, please send the error that is listed in the log file, and we can see what's up

Much Love -Bacon

Natemo2625 commented 1 year ago

After changing API key, cat and doggo still hang on "The application did not respond", but the rest seem to be fixed, so that much is done. Don't seem to be getting an error, but I will look in logs for one.

Edit: I don't see an error, so I'm not sure what's causing it, have any ideas of what I could try?

Bacon-Fixation commented 1 year ago

@Natemo6348 hahahah found a typo in the /cat and /doggo commands, have a look at #774

Much Love -Bacon

Natemo2625 commented 1 year ago

Oh well that explains it all lol, guess I should've looked myself, but oh well, issue was located anyway, that is a lot!

Bacon-Fixation commented 1 year ago

It's no worries, my friend

let us know if you have any more issues, soo good to hear from ya again, it has been awhile <3

Much Love -Bacon

Natemo2625 commented 1 year ago

@Bacon-Fixation it's good to be back. Also it looks like the bot was shifted to tenor v2 just last month, so if I had been here earlier, I wouldn't have had this problem lol