Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created September 1, 2022 15:02
Show Gist options
  • Save BetterProgramming/c7dcbd94be4a4b0a5a9c718ade38a736 to your computer and use it in GitHub Desktop.
Save BetterProgramming/c7dcbd94be4a4b0a5a9c718ade38a736 to your computer and use it in GitHub Desktop.
//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