Needing help with turning a discord bot online.

πŸ™ The bloody video I followed isnt working for me. Needing some help here.
29 Replies
d.js toolkit
d.js toolkitβ€’12mo ago
β€’ What's your exact discord.js npm list discord.js and node node -v version? β€’ Post the full error stack trace, not just the top part! β€’ Show your code! β€’ Explain what exactly your issue is. β€’ Not a discord.js issue? Check out #useful-servers.
treble/luna
treble/lunaβ€’12mo ago
your token is not a valid token
Papa
Papaβ€’12mo ago
but its not I even just changed it rn
treble/luna
treble/lunaβ€’12mo ago
console.log process.env.BOT_TOKEN and see if it returns the token wait you called your file main.env idk whether that'll work, mine is just .env
Papa
Papaβ€’12mo ago
Papa
Papaβ€’12mo ago
yeah replit wouldnt let me
treble/luna
treble/lunaβ€’12mo ago
use vscode, not replit to code
Papa
Papaβ€’12mo ago
vs wasnt working as always
treble/luna
treble/lunaβ€’12mo ago
replit aint either. and what warning does it give on your require('dotenv') there
Papa
Papaβ€’12mo ago
shit program
treble/luna
treble/lunaβ€’12mo ago
thats not vscode, thats because you dont have node installed
Papa
Papaβ€’12mo ago
so dumb man I thought I could run package.json and everything would install like every other online provider oof surely theres a website or something I can use?
treble/luna
treble/lunaβ€’12mo ago
no, you have to run npm i just run npm i discord.js dotenv etc etc
Papa
Papaβ€’12mo ago
treble/luna
treble/lunaβ€’12mo ago
any free or shared hosting can get ip banned or ratelimited at any point so its unreliable
chewie 🌈
chewie πŸŒˆβ€’12mo ago
you have to install nodejs this is pretty basic knowledge
Papa
Papaβ€’12mo ago
boy why doesnt it install from a command npm install?
chewie 🌈
chewie πŸŒˆβ€’12mo ago
why would it npm is part of nodejs no nodejs, no npm
Papa
Papaβ€’12mo ago
everything else can so why not :/
chewie 🌈
chewie πŸŒˆβ€’12mo ago
please get a decent understanding before you continue with making bots #rules 3 #resources
Papa
Papaβ€’12mo ago
oh god this is that guy who makes a big scene calls the mods and gets us both in trouble sighs
treble/luna
treble/lunaβ€’12mo ago
chewie is a mod
Papa
Papaβ€’12mo ago
fine I'll read through all them
chewie 🌈
chewie πŸŒˆβ€’12mo ago
glad I dont need to call the mods I'm already here mmLol
Papa
Papaβ€’12mo ago
surely you guys got like a tutorial video or something lol
chewie 🌈
chewie πŸŒˆβ€’12mo ago
no, we have a few text guides in #resources for everything else you need to ask google or get help on a general programming server like the ones in #useful-servers
EndergamerMC
EndergamerMCβ€’12mo ago
and you need to do config() to load the token iirc
Papa
Papaβ€’12mo ago
got it
Chelsea
Chelseaβ€’12mo ago
replit deprecated env files, use their built in secrets feature