Needing help with turning a discord bot online.
š The bloody video I followed isnt working for me. Needing some help here.
29 Replies
ā¢ 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.your token is not a valid token
but its not
I even just changed it rn
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
yeah replit wouldnt let me
use vscode, not replit to code
vs wasnt working
as always
replit aint either. and what warning does it give on your require('dotenv') there
shit program
thats not vscode, thats because you dont have node installed
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?
no, you have to run npm i
just run npm i discord.js dotenv etc etc
any free or shared hosting can get ip banned or ratelimited at any point so its unreliable
you have to install nodejs
this is pretty basic knowledge
boy why doesnt it install from a command
npm install?
why would it
npm is part of nodejs
no nodejs, no npm
everything else can
so why not :/
please get a decent understanding before you continue with making bots
#rules 3 #resources
oh god this is that guy who makes a big scene calls the mods and gets us both in trouble
sighs
chewie is a mod
fine I'll read through all them
glad I dont need to call the mods
I'm already here
surely you guys got like a tutorial video or something lol
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
and you need to do config() to load the token iirc
got it
replit deprecated env files, use their built in secrets feature