// Require discord.js package
const Discord = require("discord.js");
// Display a message when the bot comes online
client.on("ready", () => {
console.log(`Logged in as ${client.user.tag}!`);
});
// Log in the bot using your token (password)
client.login("XXXXX");
Apparently this is due to too many IDENTIFY requests from the bot (limited to 1000 / 24h), and it won’t throw any errors; instead it just waits until it is allowed to make a new request to login. You can see the status of the bot by adding a listener to the debug event from the client: it will show when the bot is waiting to make a new request.
client.on('debug', console.log);
The only way to fix this is to wait until the 24 hours are over. Avoid this by adding a throttle to watch.json.