#Online Bot Issues

203 messages · Page 1 of 1 (latest)

dim onyx

nodemon not working on terminal

jaunty bloomBOT
  • 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
dim onyx
  • 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

dim onyx

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.

honest fjord
dim onyx
honest fjord

this is a summary of what you need to do

dim onyx

How do I run "Powershell" as Admin?

@honest fjord

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

dim onyx

Okay, thanks for the information.

dim onyx
honest fjord

type Y

dim onyx
honest fjord

try using nodemon now

dim onyx

So now if I do nodemon in the terminal it should work correct?

honest fjord

if it still doesn't work, try restarting vscode just in case

dim onyx

Different are this time.

honest fjord

yeah it's searching for an "ndex.js"

it should be index.js

it's a typo

honest fjord

reset it in case you haven't already

dim onyx
honest fjord

what command are you running exactly?

just nodemon ?

dim onyx

Correct.

honest fjord

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

main moatBOT

To share long code snippets, use a service like gist, sourcebin, pastebin, or similar instead of posting them as large code blocks or files.

dim onyx

guys im dumb

dim onyx
honest fjord

oh, lol

yeah that stuff happens

dim onyx
honest fjord

you mean how to reply with an embed?

dim onyx
honest fjord

it's the same as with a regular message

dim onyx

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?

main moatBOT
dim onyx

So yes that is how you do a embed but how would I put that into a slash command ?

@honest fjord

honest fjord

do you know how to do a basic slash command?

honest fjord

okay np, you just have to take a step back

honest fjord

you should follow the guide from the start

main moatBOT
dim onyx

😭

honest fjord

you haven't imported it

dim onyx
honest fjord

import it from discord.js

dim onyx
honest fjord

can you show your whole code?

dim onyx

i didnt show my token that is it

@honest fjord

honest fjord

um you aren't meant to have those code snippets in the same file

dim onyx

do i make a file in src folder or by its self?

honest fjord

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

dim onyx

this doesn't say make a file

oh wait

i have to make a folder named commands

and then subfolder

honest fjord

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

honest fjord

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

honest fjord

the guide tells you how you can do it

dim onyx
honest fjord

not necessarily the only way, but it's a start

dim onyx

im confused

honest fjord

about what?

have you followed the rest of the guide that's before that?

these

dim onyx
honest fjord

okay, then you should be fine at that point

dim onyx

this?

what file

i have the trwo folders but do i make a file for the command?

honest fjord

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

honest fjord

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

dim onyx
honest fjord

because you need to deploy them, discord can't magically know what commands you're listening to

honest fjord

the next part of the guide covers handling

and then deploying

dim onyx

ok

honest fjord

registering and deploying mean the same thing in this context and are used as synonyms

don't skip the handling part though

dim onyx

that look right

@honest fjord

honest fjord

if it's like the guide then yeah

I don't remember how it was exactly

dim onyx
honest fjord

about?

dim onyx

i got rid of the commands stuff i will do it tomorrw

i give up on that for now

but i got this

honest fjord

you have two client variables

dim onyx

i got it now

thanks for the help! can you keep this open?

@honest fjord

honest fjord

I'm not staff but I'm pretty sure it stays open

dim onyx

@honest fjord online?

anyone online?

need assistance with an error

while making slash commands in the command handling section

@rough dove

fading terrace

#rules 5, not the first time you did this either

dim onyx

Anyways can someone assist whenever?

dim onyx

need help with this error

heady scroll

missing a semicolon

and you forgot to set a token

in the rest constructor

dim onyx
dim onyx

?

heady scroll

new REST(…).setToken(…);

dim onyx
heady scroll

no

why did you remove the method?

dim onyx
heady scroll

and move the version to the token? do you know javascript or what you’re doing?

heady scroll

please refer to #rules 3 as that is required in our server

dim onyx

I am using node.js and discord.js'

heady scroll

yes you are…?

dim onyx

that is it

heady scroll

node.js and discord.js use Javascript

dim onyx
heady scroll
dim onyx
heady scroll

no, because i can’t help if you don’t know javascript at all

dim onyx

Just not about that for some reason.

heady scroll

okay, what’s a method

what’s an array

what’s an object

if you can’t answer those, i cannot help you

dim onyx

*various

heady scroll

you googled that.

that’s exactly what google says

dim onyx
heady scroll what’s an object

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.

heady scroll

i can’t help you if you don’t know javascript

dim onyx

is

dim onyx
heady scroll

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

heady scroll

i can’t help you anymore, please learn javascript

heady scroll

my time has been wasted already and no i’m not your bro

dim onyx
dim onyx
heady scroll

good luck

dim onyx
heady scroll

i’m not rude, i’m being factual

please stop

dim onyx

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

?

trail yew
trail yew
honest fjord