Deprecated: Function create_function() is deprecated in /var/www/vhosts/eduardoarellano.com/d4mations.com/wp-content/plugins/wp-automatic/wp-automatic.php on line 70
Code a Javascript Discord Bot: Part 1 – Getting Set Up | D4mations.com
  • Tuesday , 29 September 2020

Code a Javascript Discord Bot: Part 1 – Getting Set Up

Code Canyon



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

3d Ocean

Related Posts

50 Comments

  1. Technical thakur
    January 2, 2019 at 13:17

    Can u pls tell how to make a hq life bot through python

  2. Extreme TeaTime
    January 2, 2019 at 13:17

    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.

  3. Fan
    January 2, 2019 at 13:17

    [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type object help

  4. QNEB
    January 2, 2019 at 13:17

    Very nice!!!
    Thanks you!!!

  5. Marius Stig Andersen
    January 2, 2019 at 13:17

    it aint working for me at all

  6. nikola pvp
    January 2, 2019 at 13:17

    How to tipy a upper point on kayboard

  7. Mineblox // Gaming Videos
    January 2, 2019 at 13:17

    USE https://atom.io PLEASE

  8. ÐèMí
    January 2, 2019 at 13:17

    I followed another method and that was so much more complex i recommend this <3

  9. zachcraft
    January 2, 2019 at 13:17

    How do you make the index . js I am on mac

  10. Мистер Костя
    January 2, 2019 at 13:17

    T
    O
    P

  11. Мистер Костя
    January 2, 2019 at 13:17

    Кто русский, ставь лайк под комент!)

  12. nightmare cz
    January 2, 2019 at 13:17

    command json . its not function

  13. Marcus Parsons
    January 2, 2019 at 13:17

    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.

  14. Kelfoi
    January 2, 2019 at 13:17

    Scammed

  15. EmmehPlayz
    January 2, 2019 at 13:17

    what does he do to delete all the code and open a new file at 2:56

  16. Jake Kuhlemeier
    January 2, 2019 at 13:17

    Works great thanks much

  17. KatBlox
    January 2, 2019 at 13:17

    Invalid login details

  18. Curtis Bunnett
    January 2, 2019 at 13:17

    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)

  19. Carbonated Lava
    January 2, 2019 at 13:17

    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!

  20. Unknown_
    January 2, 2019 at 13:17

    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.

  21. Leafrex
    January 2, 2019 at 13:17

    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

  22. Phan Tu
    January 2, 2019 at 13:17

    0:34 is that tutoriel????

  23. Daniel Nguyen
    January 2, 2019 at 13:17

    how do i get my bot to become online?

  24. JorraVN
    January 2, 2019 at 13:17

    Hi. Thanx for the tutorial. One problem….. my bot is not online. Please help

  25. Housin Engi
    January 2, 2019 at 13:17

    i tried it got all the way to ^c and it says i cant at all

  26. Austin Kerr
    January 2, 2019 at 13:17

    When ever I clicked on it for it to join my server it never did can someone help me plese

  27. Unkown Helper
    January 2, 2019 at 13:17

    I Can Not Get a OAuth URL Generator that works, every code wont work

  28. BuildersOut
    January 2, 2019 at 13:17

    my bot, is… is not online

  29. Shu
    January 2, 2019 at 13:17

    Can you please make a video on building a music bot with JavaScript? Thank-you and please ._.)

  30. PotatoDevs
    January 2, 2019 at 13:17

    Ctrl + c (^C) doesn’t work

  31. Saiyanrage 7783
    January 2, 2019 at 13:17

    Nothing works :C
    Tried "node ." nothing does it give

  32. Mystic Greninja
    January 2, 2019 at 13:17

    SO Eazy Thanks

  33. The Retjeee
    January 2, 2019 at 13:17

    its an "unexpected token"

  34. The Retjeee
    January 2, 2019 at 13:17

    mine sais that theres no script or something in the file i created whats not true

  35. Sneaky Mytsics
    January 2, 2019 at 13:17

    Wtf is curl- tilde

  36. Ali Salha
    January 2, 2019 at 13:17

    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

  37. STAR FALL
    January 2, 2019 at 13:17

    I'm using Atom Editor on Mac..What I'm facing is the bot is still offline what to do? Please help

  38. Xan
    January 2, 2019 at 13:17

    visual studio code is shit use atom much better 😉

  39. VlocityOfficial
    January 2, 2019 at 13:17

    My bot is always offline, can somebody help me with this?

  40. James Devlin
    January 2, 2019 at 13:17

    wow great intro tutorial! You really present the topic well 🙂

  41. Neurotripsicks
    January 2, 2019 at 13:17

    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.

  42. VVPS BE
    January 2, 2019 at 13:17

    this is kind of late but what about ES6 standards and using import other than require?

  43. Gavin Gavinnn
    January 2, 2019 at 13:17

    Also for those who get errors, just run the program as administrator.

  44. Memerguy
    January 2, 2019 at 13:17

    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?

  45. MoMoV
    January 2, 2019 at 13:17

    Very cool thanks
    👍

  46. Barackuse McKhulin
    January 2, 2019 at 13:17

    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.

  47. OhhReplayz I Gaming and More!
    January 2, 2019 at 13:17

    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)

  48. Techno Wizard
    January 2, 2019 at 13:17

    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)

  49. GalacticIceCloud
    January 2, 2019 at 13:17

    it won't even let me type in the terminal…

Leave A Comment

You must be logged in to post a comment.