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