#DoSg

1 messages · Page 1 of 1 (latest)

small flint
#

My message tells you where it's located.

#

In a file called client.js at line 254

fervent swallow
#

client.js file location

small flint
#

if you don't HAVE a client.js then what files do you have? what is your bot's main file called?

fervent swallow
#

index.js

small flint
#

to keep track, ignore.

#

Line 111 of index.js, show me.

fervent swallow
#

okay

small flint
#

and you changed the env file to .env

fervent swallow
#

yes

small flint
#

As in, the WHOLE FILE NAME is .env?

fervent swallow
small flint
#

If you don't mind, upload your entire index.js file somewhere. I'll have a look, make sure there is no sensitive stuff like token or client id, etc.

fervent swallow
#

okay

#

@small flint

#

Can I delete it now?

small flint
#

Trying to look where your token references are. Hold up.

small flint
#

Humor me. Try creating a variable inside your index.js and set it equal to your token. Then use that variable to login, or even just use the token itself where you call client.login. I want to make sure the variable is the issue.

fervent swallow
#

client.login(TOKENHERE); ?

small flint
#

as a string.

#

Unless it's a variable, then yes.

fervent swallow
#

show me example

#

im dumb

small flint
#

client.login("tokenGoesHere") or if you have a variable, then client.login(tokenVariable)

fervent swallow
#

i will start it

small flint
#

If that did not work, then I think you've done something horribly wrong.

#

Be honest, did you write the code you're using? It seems overly complicated, and is probably doing more harm than good.

fervent swallow
#

can i give you subuser

small flint
#

Assuming the token ITSELF is not the issue... which it kind of seems like it is... then it's the code.

fervent swallow
#

then you can test it

#

this is running in host

#

i need this bot

small flint
#

If all you need is a bot, I'd suggest using one that exists already, don't create your own unless you really need to. You seem very inexperienced in programming.

#

You can find various websites to get bots from, plenty exist. Surely there is a moderator mail one... or a few thousand.

fervent swallow
#

this is best

small flint
#

Using an existing one you mean?

fervent swallow
#

yes

small flint