Bot Discord.js allowing the automation of regular message sending in a specific channel.
-
Copy these files to your Discord bot project directory.
-
Check your node.js installation with "node -v".
-
In your project folder, install the modules for discord.js with the command: "npm i discord.js".
-
In your Discord Developer Portal control panel for your bot, check that "Presence IntentServer" and "Members Intent" are activated before launching your bot. This is essential since the last update of discord.js with the Intentions.
-
Launch your bot with "node index.js".