#Online Bot Issues
203 messages · Page 1 of 1 (latest)
- 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 staff
-
My issue is whenever I have done all of my intents and my "client.login('TOKEN')" I do "npm i -g nodemon" that installs and the to save it I do "nodemon" in the terminal and there is an error as this is what a youtube video instructed me to do.
@blissful apex
This is kinda confusing to be honest with you, sir.
In all reality I am just trying to get my bot online. I am a beginner and then I will try to figure out how to do that later on.
what part of it is confusing? we can help but we need more details on what you don't understand or where you're getting stuck
I am getting stuck on the part where I put nodemon in my terminal and it shows in error as the Youtube video instructs me to do that as I am trying to get my bot online.
I meant here
this is a summary of what you need to do
Oh. I am just confused on where to look and what to do to fix the problem
How do I run "Powershell" as Admin?
@honest fjord
open windows menu (win key), type "powershell", on the right side click open as admin and it'll open
it may ask for a confirmation or something
Okay, thanks for the information.
Does this look right after I ran the command?
type Y
Done!
try using nodemon now
So now if I do nodemon in the terminal it should work correct?
if it still doesn't work, try restarting vscode just in case
Different are this time.
yeah it's searching for an "ndex.js"
it should be index.js
it's a typo
also I noticed just now that you shared your token
reset it in case you haven't already
oh shit
Okay done so how do I get the "ndex.js" fixed?
what command are you running exactly?
just nodemon ?
I'm not sure how nodemon works exactly, maybe it's grabbing an script from your package.json
can you share that?
via a bin
guys im dumb
It is because in my "package.json" has "ndex.js"
oh, lol
yeah that stuff happens
how do i do /slash commands reply in an embed?
you mean how to reply with an embed?
yes but using a slash command
it's the same as with a regular message
Ex: I use /promote
then it replies with an embed that has the user reason old rank new rank blah blah blah but in an embed
but how would I make it a embed?
Popular Topics: Embeds
read more
So yes that is how you do a embed but how would I put that into a slash command ?
@honest fjord
do you know how to do a basic slash command?
okay np, you just have to take a step back
okay
you should follow the guide from the start
Home: Introduction
read more
you haven't imported it
wym?
import it from discord.js
how?
can you show your whole code?
i didnt show my token that is it
@honest fjord
um you aren't meant to have those code snippets in the same file
oop
do i make a file in src folder or by its self?
follow the guide from the scratch and read it, don't just copy and paste it since you won't understand most stuff
djs is just an api, not a framework so it doesn't do much by itself, you define your entire structure however you'd like
but the guide gives you an understandable and easy to modify start
this doesn't say make a file
oh wait
i have to make a folder named commands
and then subfolder
you should be in your "creating your bot" section, since that's the setup guide
the rest of the guide is more like worded documentation
if you want, but then you're missing the part that loads those commands
or you could name it "koxels-commands" and load it, whatever you want
the point I'm trying to make is that djs won't load anything by itself, you have to code that
yes
the guide tells you how you can do it
not necessarily the only way, but it's a start
im confused
about what?
have you followed the rest of the guide that's before that?
these
I have that done my bot is online.
okay, then you should be fine at that point
yes on the slashcommand builder where do i put the code in?
this?
what file
i have the trwo folders but do i make a file for the command?
don't try to blindly copy and paste code, at least try to read what it says
it's not telling you to copy it
I am.
it's just telling you how it'd look like
below that it tells explains what the setup will be, and what you can actually copy
I have this but the command doesn't show
because you need to deploy them, discord can't magically know what commands you're listening to
how do i deploy?
the next part of the guide covers handling
and then deploying
ok
registering and deploying mean the same thing in this context and are used as synonyms
don't skip the handling part though
that look right
@honest fjord
if it's like the guide then yeah
I don't remember how it was exactly
im so confused
about?
i got rid of the commands stuff i will do it tomorrw
i give up on that for now
but i got this
you have two client variables
i got it now
thanks for the help! can you keep this open?
@honest fjord
I'm not staff but I'm pretty sure it stays open
Okay!
@honest fjord online?
anyone online?
need assistance with an error
while making slash commands in the command handling section
@rough dove
#rules 5, not the first time you did this either
Sorry, sir.
Anyways can someone assist whenever?
need help with this error
missing a semicolon
and you forgot to set a token
in the rest constructor
how would I?>
new REST(…).setToken(…);
no
why did you remove the method?
wym?
and move the version to the token? do you know javascript or what you’re doing?
nuhuh
please refer to #rules 3 as that is required in our server
I am not using "Javascript"
I am using node.js and discord.js'
yes you are…?
that is it
node.js and discord.js use Javascript
oh well how do I learn about that?
Okay, I have it. Can you assist me now?
no, because i can’t help if you don’t know javascript at all
I do.
Just not about that for some reason.
okay, what’s a method
what’s an array
what’s an object
if you can’t answer those, i cannot help you
you googled that.
that’s exactly what google says
Okay, look I truly understand your rules. I have never done this in my life and am trying the best I can do to create a bot. I don't know anything, I just want help.
i can’t help you if you don’t know javascript
This is so dumb. No disrespect, but why is that?
because how else will you understand anything i tell you if you have no understanding of javascript
you’ll have a hard time with basic stuff if you’re not able to understand what i tell you
explaining
i can’t help you anymore, please learn javascript
my time has been wasted already and no i’m not your bro
Okay, I have been respectful to you and you can't help me with this one little error.
this!?
good luck
So rude.
i’m not rude, i’m being factual
please stop
I am just trying to fix one error that I don't need "Javascript" for and some staff member can't help me that is "rude". What do I need to stop
?
index not a property of process
sidenote: if you're using discord.js, youll always need javascript
the "js" in both means "javascript", you should have knowledge of it before trying to make a bot, otherwise things are going to get really hard and confusing