Closed Oplikk closed 4 years ago
Describe the bug i keep getting error XXX is not a function (the XXX are multiple commands My main guess is, that i dont have some dependency installed or something similar, but need help investigating
Screenshots https://imgur.com/a/cIxi0y6
Desktop (please complete the following information):
- OS: Windows 10 v2004 -Node v14.4.0
- FFMPEG+ Python 2.7 installed
- Local hosting (launching throught VisualStudioCode
Additional context Exact copy of the code or a code with a deleted function. installed dependecies by npm i , Exact copy of the code shows a error TypeError: Cannot read property 'hours' of undefined When deleting line 290 to 301 in play.js, the error is the one described above, about missing a function : https://imgur.com/a/cIxi0y6
Hey , check your discord.js and discord.js-commando version , you should be running v11-dev of commando and v12 discord.js To install the correct discord.js-commando version run npm install discordjs/Commando To install discord.js version 12 use npm install discord.js also make sure you install nodejs v10 or 12 , 12 is good and retry
Describe the bug i keep getting error XXX is not a function (the XXX are multiple commands My main guess is, that i dont have some dependency installed or something similar, but need help investigating Screenshots https://imgur.com/a/cIxi0y6 Desktop (please complete the following information):
- OS: Windows 10 v2004 -Node v14.4.0
- FFMPEG+ Python 2.7 installed
- Local hosting (launching throught VisualStudioCode
Additional context Exact copy of the code or a code with a deleted function. installed dependecies by npm i , Exact copy of the code shows a error TypeError: Cannot read property 'hours' of undefined When deleting line 290 to 301 in play.js, the error is the one described above, about missing a function : https://imgur.com/a/cIxi0y6
Hey , check your discord.js and discord.js-commando version , you should be running v11-dev of commando and v12 discord.js To install the correct discord.js-commando version run npm install discordjs/Commando To install discord.js version 12 use npm install discord.js also make sure you install nodejs v10 or 12 , 12 is good and retry
Hey there, hecked all the versions, commando does not match up, i have v10 instead of v11, but everytime i do npm install discord.js/commando
it tells me it is installing v11, but after the process is done , i still have v10 installed isntead of v11. Any idea what to do?
Did you clone this repo and then hit 'npm i' in your terminal? You don't need to install the dependencies individually
Did you clone this repo and then hit 'npm i' in your terminal? You don't need to install the dependencies individually
Yes i did
I don't understand, why did you delete those lines of code? You basically deleted a function and then got an error that there is a missing function
I don't understand, why did you delete those lines of code? You basically deleted a function and then got an error that there is a missing function
the error does not refer to the deleted line, AND IS PRESENT when the code is raw copied
Did it work before? You might have hit the API quota limit based on the "there was a problem getting the video you requested"
Did it work before? You might have hit the API quota limit based on the "there was a problem getting the video you requested"
It does not work at all, not a single successful command. I think there is something wrong globally, the other issue posted there o github is the same thing
I've cloned and run this repo probably dozens of times on different operating systems and constantly test it. Did you put a correct YouTube API key in config.json? 99% of the issues about something being "undefined" came down to not following the instructions on the readme or not generating or simply not pasting a correct API key in config.json
After rebooting getting a new error
@Oplik, An error occurred while running the command: TypeError: this.formatDuration is not a function You shouldn't ever receive an error like this. Please contact Oplik#3944.
You should not get this error if you didn't modify anything in code. This bot is really not hard to get working, all you gotta do is clone this repo, npm i, put your id in index.js and make sure you generate the correct API keys. I'm quite confident your YouTube API key is either wrong or you hit the quota (and please check this so we can be sure)
You should not get this error if you didn't modify anything in code. This bot is really not hard to get working, all you gotta do is clone this repo, npm i, put your id in index.js and make sure you generate the correct API keys. I'm quite confident your YouTube API key is either wrong or you hit the quota (and please check this so we can be sure)
Still have API quota to spare (only 1 request have been made) - api from Youtube api v3 Code is copied, i then did npm i - that installed all the dependency, i have node v 14.4, python 2.7 and ffmpeg. Still keep getting the error
Does the error show up in logs or just on discord
@Oplikk it comes down to two options:
I'm sorry I'm not able to help you much, the reason is that I can't figure out what is wrong without knowing what you did exactly. If you follow the instructions carefully(like 100's of people do weekly), you will have no issues
Closing issue, strangely resolved after VisualStudio Reinstallation. Anyways thanks for your time and the now well working bot!
Describe the bug i keep getting error XXX is not a function (the XXX are multiple commands My main guess is, that i dont have some dependency installed or something similar, but need help investigating
Screenshots https://imgur.com/a/cIxi0y6
Desktop (please complete the following information):
Additional context Exact copy of the code or a code with a deleted function. installed dependecies by npm i , Exact copy of the code shows a error TypeError: Cannot read property 'hours' of undefined When deleting line 290 to 301 in play.js, the error is the one described above, about missing a function : https://imgur.com/a/cIxi0y6