Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

Looking to build a Discord bot using JavaScript, but where do I start?

Malcolm

Administrator
Administrator
Staff Team
Code Plus
Company Plus
Hello Coders!

I'm looking to start building a Discord bot for my Discord channel and was wondering where do I start? And, what do I need to have before I start? Is there anything I need to keep in mind?

I'm developing a Discord bot for Code Forum's discord channel and want it to be helpful.

Cheers!
 
I recently created a Discord bot using python with the aid of a youtube tutorial by DevDungeon, as well as a few written tutorials and reading through documentation. I also noticed they uploaded a tutorial for JavaScript, but haven't watched it as I don't use that coding language. Perhaps that or the written tutorial linked from their video could be of some help? I found it particularly useful that they made a video tutorial as well as a written one, but my main issue with it was, for python at least, they were using an outdated package and some documentation has changed since then. Link to video here

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
 
Last edited by a moderator:
I recently created a Discord bot using python with the aid of a youtube tutorial by DevDungeon, as well as a few written tutorials and reading through documentation. I also noticed they uploaded a tutorial for JavaScript, but haven't watched it as I don't use that coding language. Perhaps that or the written tutorial linked from their video could be of some help? I found it particularly useful that they made a video tutorial as well as a written one, but my main issue with it was, for python at least, they were using an outdated package and some documentation has changed since then. Link to video here

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
I had the same video and was about to post it lol
 
I recently created a Discord bot using python with the aid of a youtube tutorial by DevDungeon, as well as a few written tutorials and reading through documentation. I also noticed they uploaded a tutorial for JavaScript, but haven't watched it as I don't use that coding language. Perhaps that or the written tutorial linked from their video could be of some help? I found it particularly useful that they made a video tutorial as well as a written one, but my main issue with it was, for python at least, they were using an outdated package and some documentation has changed since then. Link to video here

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
Thanks @Tret! I’ll check it out when I get home! :)
 
It definitely got me started. He didn't seem to clear on somethings but now that I know what to do. I can just simply look up my questions. Thanks! :)
 
You will need to use Node.js, which is able to interpret all of the messages sent & do things in return.
The essentials are this...
  • Learn how to read incoming messages to the Discord server
  • Filter messages / target messages that use a command or text that should trigger your bot
  • Prepare the bot response
  • Learn how to send a message to the Discord server
In JavaScript this is all very easy, and using Node.js isn't too hard either, but will definitely require some tutorials or guidance even if you know core JS already.
You can do a lot with Node.js though, and once you learn the Discord API you can learn other networks like Reddit, Facebook, Twitter and more to create other bots.
 
You will need to use Node.js, which is able to interpret all of the messages sent & do things in return.
The essentials are this...
  • Learn how to read incoming messages to the Discord server
  • Filter messages / target messages that use a command or text that should trigger your bot
  • Prepare the bot response
  • Learn how to send a message to the Discord server
In JavaScript this is all very easy, and using Node.js isn't too hard either, but will definitely require some tutorials or guidance even if you know core JS already.
You can do a lot with Node.js though, and once you learn the Discord API you can learn other networks like Reddit, Facebook, Twitter and more to create other bots.
Awesome thanks @Ghost Ill look into this! I got one working but understanding how and what certain functions are
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom