Created
September 1, 2022 15:02
-
-
Save BetterProgramming/c7dcbd94be4a4b0a5a9c718ade38a736 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//In bot.js | |
const token = <"YOUR_SAVED_BOT_TOKEN">; //Token that you saved in step 5 of this tutorial | |
const {Client, Intents} = require("discord.js"); | |
const client = new Client({ | |
intents:[ | |
Intents.FLAGS.GUILDS, | |
Intents.FLAGS.GUILD_MESSAGES | |
] | |
}); | |
client.on("ready", () =>{ | |
console.log("The AI bot is online"); //message when bot is online | |
}); | |
client.login(token); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment