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 toolkit5mo 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
$ CJOP5mo ago
No description
Amgelo
Amgelo5mo ago
the error says the problem
$ CJ
$ CJOP5mo ago
I can't understand the issue i did everything correct
Amgelo
Amgelo5mo ago
you've provided an invalid token you can try logging it before calling .login() to see if it's what you expect
$ CJ
$ CJOP5mo ago
The token i gave was correct
Amgelo
Amgelo5mo ago
not according to your error
$ CJ
$ CJOP5mo ago
How?
Amgelo
Amgelo5mo ago
how which part?
$ CJ
$ CJOP5mo ago
I want to know what's the problem.
Amgelo
Amgelo5mo ago
well this is the problem
$ CJ
$ CJOP5mo ago
I added the bot to ghostbot and removed it does that effect the bot?
Amgelo
Amgelo5mo ago
you mean botghost? this?
No description
$ CJ
$ CJOP5mo ago
I provided the full information
No description
Amgelo
Amgelo5mo ago
djs doesn't read any config.json files you have to code that
$ CJ
$ CJOP5mo 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
Amgelo5mo 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
$ CJOP5mo ago
No description
Amgelo
Amgelo5mo ago
sounds like your client id and your token don't match
$ CJ
$ CJOP5mo ago
Does this server has a devtool including a way to start the bot as well explaintion?
Amgelo
Amgelo5mo 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
pat5mo ago
token is not id
$ CJ
$ CJOP5mo ago
mhm,' Ik
pat
pat5mo ago
yet it says 1 go to discord.dev and get a new one
$ CJ
$ CJOP5mo ago
Surely
$ CJ
$ CJOP5mo ago
@pat @Amgelo
No description
Amgelo
Amgelo5mo 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
$ CJOP5mo ago
All activities? That's what i made using ghostbot
Amgelo
Amgelo5mo ago
do you want to create activities?
$ CJ
$ CJOP5mo ago
Such as?
Amgelo
Amgelo5mo ago
uh, discord's
$ CJ
$ CJOP5mo ago
I want to get this bot online.
d.js docs
d.js docs5mo ago
:discord: Overview of Activities !Building Discord Activities read more
$ CJ
$ CJOP5mo ago
can i invite you for somthing?
Amgelo
Amgelo5mo ago
no just ask here
$ CJ
$ CJOP5mo ago
:dogeHaHa:
Amgelo
Amgelo5mo ago
well I've provided two options you can follow
$ CJ
$ CJOP5mo ago
okay now what shall i do to get this bot online? ok
treble/luna
treble/luna5mo ago
Considering you use botghost, do you have any Javascript experience at all
$ CJ
$ CJOP5mo ago
im building a discord bot not a activeites. Holy,,,,, I dont use ghostbot.
Amgelo
Amgelo5mo ago
well you've deployed an activity entry point command, my two options are to delete that command
$ CJ
$ CJOP5mo 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/luna5mo ago
well java isnt Javascript
$ CJ
$ CJOP5mo ago
May i know how to do that
Amgelo
Amgelo5mo ago
which?
$ CJ
$ CJOP5mo ago
java - js - javascript call it what ever you want 😭 deleting the activity
Amgelo
Amgelo5mo 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
$ CJOP5mo ago
No description
$ CJ
$ CJOP5mo ago
@Amgelo U mean those?
No description
$ CJ
$ CJOP5mo ago
@Amgelo HOLY THE BOT STARTED THANKS !
$ CJ
$ CJOP5mo ago
No description
treble/luna
treble/luna5mo ago
I'd consider checking out what java is if you dont even know the difference
$ CJ
$ CJOP5mo ago
Started @Amgelo :heart_CD:
No description
$ CJ
$ CJOP5mo 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/luna5mo ago
Sure, but you'll run into issues. A hamster has ham into it, it doesnt mean it is ham :shrug:
$ CJ
$ CJOP5mo ago
Please leave me alone you are annoying :OneOfSoujisOnlyTwoEmoji: ? @Amgelo How to turn the bot off?
treble/luna
treble/luna5mo ago
press ctrl c
$ CJ
$ CJOP5mo ago
copy?
treble/luna
treble/luna5mo ago
same keybind, different purpose, you do have to press it in the terminal
$ CJ
$ CJOP5mo ago
ok
Syjalo
Syjalo5mo ago
Egg or eggplant, call it whatever you want

Did you find this page helpful?