help with makeing a bot
Hey yall I am looking for some help to make a discord bot for my discord I am a twitch streamer a small twitch streamer and I'm looking for some basic help to make my discord bot I don't know a lot about coding but I do know a friend that does so I will ask him for the code so I'm just looking for some basic information also don't have the software so just bear with me.
24 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by staffunfortunately we require you to have a solid understanding of javascript and nodejs, so its best to let your friend help you I suppose
and if the friend struggles, they can come here
so should i just look for youtube tutorials for now and download the software then come here for help?
no, you should get a good grasp of javascript before coming here for help
Can I get a link for YouTube tutorials
#resources has some guides to get started, we dont recommend youtube tutorials here
i just want to know the basics
the djs guide is probably more helpful than yt videos
the djs guiide doesnt help you get javascript knowledge
I just read through it and created my bot alongside the guide and now I at least somewhat understand what I'm doing :)
There are multiple known resources and courses online that can help you get a basic understanding of the JavaScript language, which you'd need a basic understanding of to use Discord.JS properly. Although I do not recommend watching youtube videos for that as you'll be dependent on those videos rather than use your own knowledge.
#resources is a good starting point for you.
fair enough, but its easy to understand and follow along and stackoverflow, mozilla js docs and chatgpt help along with the rest
Where in resources must I read for the basics
its not easy to understand at all if you lack understanding of the programming language
and chatpgt is like the worst place to ask in this case
(I mean personally I always found it easier to just get started and look up things when I didn't understand them rather than reading a bunch of theory books and then later not knowing how to apply that knowledge)
.
Is that the basics
mhhhh, I might be biased on this a little but I don't think nodejs is difficult to understand at all, the only thing u probably need is some very general understanding of what coding is and what not, i.e. the logic behind it, not so much the how to in detail
js syntax is easy enough to look it up on the fly and you don't have to deal with the complicated stuff like in other languages where u need to know more than what ure actually doing atm
I know a little bit of coding
whats the most challenging for me personally when starting something new is figuring out where to even start, like... f.e. for discord that would be "which language do I even use?" "how do I setup a node environment" "which code editor do I use" "how do I structure my bot"
it's like all the stuff before u get to even write a single line thats complicated imo
I mean the guide even goes through node and vscode setup
https://discordjs.guide/preparations/
and then I suppose difficulties arise when u know what you want, but don't know what to google to get there
say you wanna do some message filtering, how do you go about that?
It helps to break down those problems into as tiny as possible steps that you can imagine.
f.e. filtering bad urls -> extracting url's from the message -> google "how to extract url from string in nodejs"
-> how to check urls for malicious ones -> nothing on google? ask chatgpt or phind or a similar service, that can't solve the problem for you but it can point you in the right direction, this is f.e. how I heard about Google Safebrowsing API, and then you can go about googling how to set that up usw...
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
You know what I'm just gonna download the software and see how it goes
where do i download the softwere @chewie 🎃
Again, learn javacript basics first.