Bot not starting invalid token

Yesterday, I coded a bot and got it running. I tried adding it to Ghostbot to test something, but it didn’t work. This morning, I removed it from Ghostbot, but after hosting it with MongoDB, the bot went down.
61 Replies
d.js toolkit
d.js toolkit4mo ago
- 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!
$ CJ
$ CJOP4mo ago
No description
Amgelo
Amgelo4mo ago
the error says the problem
$ CJ
$ CJOP4mo ago
I can't understand the issue i did everything correct
Amgelo
Amgelo4mo ago
you've provided an invalid token you can try logging it before calling .login() to see if it's what you expect
$ CJ
$ CJOP4mo ago
The token i gave was correct
Amgelo
Amgelo4mo ago
not according to your error
$ CJ
$ CJOP4mo ago
How?
Amgelo
Amgelo4mo ago
how which part?
$ CJ
$ CJOP4mo ago
I want to know what's the problem.
Amgelo
Amgelo4mo ago
well this is the problem
$ CJ
$ CJOP4mo ago
I added the bot to ghostbot and removed it does that effect the bot?
Amgelo
Amgelo4mo ago
you mean botghost? this?
No description
$ CJ
$ CJOP4mo ago
I provided the full information
No description
Amgelo
Amgelo4mo ago
djs doesn't read any config.json files you have to code that
$ CJ
$ CJOP4mo ago
Yes, I added the bot after i started it using mongo. Yesterday i started that my self but my stupid mind went and added the bot on ghost bot then removed the bot which made the bot going down and giving me errors
Amgelo
Amgelo4mo ago
well it's hard to provide support with code you haven't even written yourself, since we expect some level of familiarization with javascript at the very least
$ CJ
$ CJOP4mo ago
No description
Amgelo
Amgelo4mo ago
sounds like your client id and your token don't match
$ CJ
$ CJOP4mo ago
Does this server has a devtool including a way to start the bot as well explaintion?
Amgelo
Amgelo4mo ago
wdym? your error is on your token apparently you aren't reading it correctly from your config or your config itself is wrong
pat
pat4mo ago
token is not id
$ CJ
$ CJOP4mo ago
mhm,' Ik
pat
pat4mo ago
yet it says 1 go to discord.dev and get a new one
$ CJ
$ CJOP4mo ago
Surely
$ CJ
$ CJOP4mo ago
@pat @Amgelo
No description
Amgelo
Amgelo4mo ago
apparently you've previously deployed a command of type 4, somehow, since it isn't supported by djs you cannot delete it via a bulk update, it has to deleted manually via a single DELETE call or I think you can also disable Activities through the dev dashboard
$ CJ
$ CJOP4mo ago
All activities? That's what i made using ghostbot
Amgelo
Amgelo4mo ago
do you want to create activities?
$ CJ
$ CJOP4mo ago
Such as?
Amgelo
Amgelo4mo ago
uh, discord's
$ CJ
$ CJOP4mo ago
I want to get this bot online.
d.js docs
d.js docs4mo ago
:discord: Overview of Activities !Building Discord Activities read more
$ CJ
$ CJOP4mo ago
can i invite you for somthing?
Amgelo
Amgelo4mo ago
no just ask here
$ CJ
$ CJOP4mo ago
:dogeHaHa:
Amgelo
Amgelo4mo ago
well I've provided two options you can follow
$ CJ
$ CJOP4mo ago
okay now what shall i do to get this bot online? ok
treble/luna
treble/luna4mo ago
Considering you use botghost, do you have any Javascript experience at all
$ CJ
$ CJOP4mo ago
im building a discord bot not a activeites. Holy,,,,, I dont use ghostbot.
Amgelo
Amgelo4mo ago
well you've deployed an activity entry point command, my two options are to delete that command
$ CJ
$ CJOP4mo ago
i used a package and hosted the bot then i was wondering if i could use both the studio and ghostbot i went and took the bot token and placed that on ghostbot after testing i deleted the bot from botghost i have 2 month of experience with java
treble/luna
treble/luna4mo ago
well java isnt Javascript
$ CJ
$ CJOP4mo ago
May i know how to do that
Amgelo
Amgelo4mo ago
which?
$ CJ
$ CJOP4mo ago
java - js - javascript call it what ever you want 😭 deleting the activity
Amgelo
Amgelo4mo ago
I've told you
you cannot delete it via a bulk update, it has to deleted manually via a single DELETE call or I think you can also disable Activities through the dev dashboard
$ CJ
$ CJOP4mo ago
No description
$ CJ
$ CJOP4mo ago
@Amgelo U mean those?
No description
$ CJ
$ CJOP4mo ago
@Amgelo HOLY THE BOT STARTED THANKS !
$ CJ
$ CJOP4mo ago
No description
treble/luna
treble/luna4mo ago
I'd consider checking out what java is if you dont even know the difference
$ CJ
$ CJOP4mo ago
Started @Amgelo :heart_CD:
No description
$ CJ
$ CJOP4mo ago
Can you leave me alone i wish to call it what ever i want its not a big issue calling it java or js or JavaScript 🙏🏼
treble/luna
treble/luna4mo ago
Sure, but you'll run into issues. A hamster has ham into it, it doesnt mean it is ham :shrug:
$ CJ
$ CJOP4mo ago
Please leave me alone you are annoying :OneOfSoujisOnlyTwoEmoji: ? @Amgelo How to turn the bot off?
treble/luna
treble/luna4mo ago
press ctrl c
$ CJ
$ CJOP4mo ago
copy?
treble/luna
treble/luna4mo ago
same keybind, different purpose, you do have to press it in the terminal
$ CJ
$ CJOP4mo ago
ok
Syjalo
Syjalo4mo ago
Egg or eggplant, call it whatever you want

Did you find this page helpful?