Discord Bot seems unable to come online

I am quite new to making discord bots using js, as I only have experience in C, C++ (just started comp.sc degree). and I was testing a simple code (console.log) because i was trying to understand what I am doing. but when I tried to start up my bot it does not seem to come online. I don’t seem to see any error messages popping up as well. I have kept my discord bot’s token in my config.json. Any help would be greatly appreciated.

C:\Users\user\Desktop\Spice Bot>nodemon
[nodemon] 2.0.3
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node app.js
[nodemon] clean exit - waiting for changes before restart

rs
[nodemon] starting node app.js
[nodemon] clean exit - waiting for changes before restart
rs
[nodemon] starting node app.js
[nodemon] clean exit - waiting for changes before restart
rs
[nodemon] starting node app.js
[nodemon] clean exit - waiting for changes before restart
rs
[nodemon] starting node app.js
[nodemon] clean exit - waiting for changes before restart

In app.js have you imported your config.json file? Like this: const auth = require("./auth.json");
Then start it with this: bot.login(auth.token);
Have you got this code?:
const Discord = require("discord.js");
const bot = new Discord.Client();

If you haven’t you should really watch a video tutorial on making a bot.

I am gonna do a quicky and ask
do you have your bots Package.json file setup with all of it requirements to function? those can really affect a Bots function trust me it affects mine
sinc eon glitch you need it setup so Glitch can get the modules it needs

or look into basic DIscord Bot tutorials i am unsure which ones may help you

In every bot code, there are essential files needed to be added

  • package.json (can’t be changed)
  • server.js (can be named to anything)

in server.js this code must be added, it is so important to run the bot

const Discord = require("discord.js"); // preferred to be like this
const client = new Discord.Client(); // client can be named to bot or anything else

// here all bot codes can be added 

client.login("TOKEN")

in package.json I guess you know what to put and this code is necessary to be added to the file

"scripts": {
"start": "node server.js"
}

The bot now should be online

Any problems you face, just mention me here telling me the error or problem