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ā€¢2y 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ā€¢2y ago
your token is not a valid token
DGBFOUNDER
DGBFOUNDEROPā€¢2y ago
but its not I even just changed it rn
treble/luna
treble/lunaā€¢2y 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
DGBFOUNDER
DGBFOUNDEROPā€¢2y ago
DGBFOUNDER
DGBFOUNDEROPā€¢2y ago
yeah replit wouldnt let me
treble/luna
treble/lunaā€¢2y ago
use vscode, not replit to code
DGBFOUNDER
DGBFOUNDEROPā€¢2y ago
vs wasnt working as always
treble/luna
treble/lunaā€¢2y ago
replit aint either. and what warning does it give on your require('dotenv') there
DGBFOUNDER
DGBFOUNDEROPā€¢2y ago
shit program
treble/luna
treble/lunaā€¢2y ago
thats not vscode, thats because you dont have node installed
DGBFOUNDER
DGBFOUNDEROPā€¢2y 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ā€¢2y ago
no, you have to run npm i just run npm i discord.js dotenv etc etc
DGBFOUNDER
DGBFOUNDEROPā€¢2y ago
treble/luna
treble/lunaā€¢2y ago
any free or shared hosting can get ip banned or ratelimited at any point so its unreliable
chewie
chewieā€¢2y ago
you have to install nodejs this is pretty basic knowledge
DGBFOUNDER
DGBFOUNDEROPā€¢2y ago
boy why doesnt it install from a command npm install?
chewie
chewieā€¢2y ago
why would it npm is part of nodejs no nodejs, no npm
DGBFOUNDER
DGBFOUNDEROPā€¢2y ago
everything else can so why not :/
chewie
chewieā€¢2y ago
please get a decent understanding before you continue with making bots #rules 3 #resources
DGBFOUNDER
DGBFOUNDEROPā€¢2y 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ā€¢2y ago
chewie is a mod
DGBFOUNDER
DGBFOUNDEROPā€¢2y ago
fine I'll read through all them
chewie
chewieā€¢2y ago
glad I dont need to call the mods I'm already here mmLol
DGBFOUNDER
DGBFOUNDEROPā€¢2y ago
surely you guys got like a tutorial video or something lol
chewie
chewieā€¢2y 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ā€¢2y ago
and you need to do config() to load the token iirc
DGBFOUNDER
DGBFOUNDEROPā€¢2y ago
got it
Chelsea
Chelseaā€¢2y ago
replit deprecated env files, use their built in secrets feature
Want results from more Discord servers?
Add your server