Premiere is a dream to edit in, and discord.js is very simple to teach. Looking forward to the future of this series!
Downloads:
❯❯ Visual Studio Code: https://code.visualstudio.com/
❯❯ Node.js: https://nodejs.org/en/
Websites:
❯❯ Discord Developer Page: https://discordapp.com/developers/
❯❯ Discord Permission Calculator: https://discordapi.com/permissions.html
❯❯ Github Gists (for posting your code): https://gist.github.com/
Original source
50 responses to “Code a Javascript Discord Bot: Part 1 – Getting Set Up”
Can u pls tell how to make a hq life bot through python
My bot won’t turn on? Does anybody have any solutions to this? It has been up to 3 minutes and they are still offline.
[ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type object help
Very nice!!!
Thanks you!!!
it aint working for me at all
How to tipy a upper point on kayboard
USE https://atom.io PLEASE
I followed another method and that was so much more complex i recommend this <3
How do you make the index . js I am on mac
T
O
P
Кто русский, ставь лайк под комент!)
command json . its not function
If you get a never ending reply from your bot, you can store the bot's client id as shown in the App page inside of your application and then check that id against `message.author.id` to make sure they are not the same, and then deliver a reply from your bot. If you don't check the id behind the message, your bot will endlessly reply to itself if you're not checking the content. It's a much safer bet to check ids versus just content.
Scammed
what does he do to delete all the code and open a new file at 2:56
Works great thanks much
Invalid login details
it dont work after i put node . it says: internal/modules/cjs/loader.js:169
throw e;
^
SyntaxError: Error parsing C:UsersawesoDocumentsOh yeahpackage.json: Unexpected token ~ in JSON at position 0
at JSON.parse (<anonymous>)
at readPackage (internal/modules/cjs/loader.js:165:49)
at tryPackage (internal/modules/cjs/loader.js:174:13)
at Function.Module._findPath (internal/modules/cjs/loader.js:284:18)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:578:25)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:279:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:752:3)
Thanks! I know this is a tad old, but it worked great! No problems beyond a bit of messing with "node ." Everything is running perfectly!
When you create the folder that holds your code, does where you place it affect the bot? because I cant get npm init to work and I cant find the place on my computer to put the folder.
for the people in the comments saying that "npm init isnt working", or that youre getting and error saying "'npm' is not recognized as an internal or external command, operable program or batch file", or that node . doesn't work, make sure your terminal is set to cmd (command line) and NOT powershell
0:34 is that tutoriel????
how do i get my bot to become online?
Hi. Thanx for the tutorial. One problem….. my bot is not online. Please help
i tried it got all the way to ^c and it says i cant at all
When ever I clicked on it for it to join my server it never did can someone help me plese
https://discord.gg/QjCbnG
I Can Not Get a OAuth URL Generator that works, every code wont work
my bot, is… is not online
Can you please make a video on building a music bot with JavaScript? Thank-you and please ._.)
Ctrl + c (^C) doesn’t work
Nothing works :C
Tried "node ." nothing does it give
SO Eazy Thanks
its an "unexpected token"
mine sais that theres no script or something in the file i created whats not true
Wtf is curl- tilde
wtf bro ur talking way to quick and when ur at index.js i have no idea what to do because of ur dumb instructions
I'm using Atom Editor on Mac..What I'm facing is the bot is still offline what to do? Please help
visual studio code is shit use atom much better 😉
My bot is always offline, can somebody help me with this?
wow great intro tutorial! You really present the topic well 🙂
Subscribed. I love you dude. Can you help me make a last.fm bot by chance? I am willing to pay good money for that. I just don't know the codes to redirect. Get back to me or add me as a friend on discord. Aiwaz#4568.
this is kind of late but what about ES6 standards and using import other than require?
Also for those who get errors, just run the program as administrator.
Node desn't work help, i installed node and the "npm init" does not work does the node have to be in the same folder as VSC?
Very cool thanks
👍
Awesome video, easy to understand and follow along. The video is a bit outdated, some of the sites and menus were not as yours. Would love to see more videos.
Error: Cannot find module 'C:Users…DownloadsHoward The Alien'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:266:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)
Mine says this: internal/modules/cjs/loader.js:583
throw err;
^
Error: Cannot find module 'discord.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (C:UsersOwnerDocumentsSuperiorStudiosBotindex.js:1:79)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
it won't even let me type in the terminal…