00:00There's this token somewhere secure.
00:01Never share your token publicly, as anyone who has it can control your bot.
00:05Step 4. Enable privilege gateway intents if needed.
00:08Roll down on the bot page to privilege gateway intents.
00:12Toggle on intents your bot requires, such as presence intent, server members intent,
00:17or message content intent required if your bot reads message text.
00:20Click Save Changes at the bottom. Step 5. Invite the bot to your server.
00:25Go to the OAuth2 tab on the left sidebar, then click URL Generator.
00:30Under Scopes, select Bot. Under Bot Permissions, select the permissions your bot needs.
00:36For example, send messages, read messages.
00:39Copy the generated URL at the bottom, paste it into your browser, select your Discord server,
00:44and click Authorize. Step 6. Write the code to log in.
00:49Install your preferred library, for example, discord.py for Python, or discord.js for Node.js.
00:55Use the code snitted below, replacing your bot account here with your actual token.
00:59Python example, discord.py, import discord, intents discord, intents.default, intents.message.message.
01:06Content true, enable if needed client, discord.client intents, intents, async def when ready,
01:11print if logged in as client.users.
01:13Use code with caution, Node.js.
01:16Example, discord.js const, client, gateway intents as you acquire, discord.js is const client, new client.
01:23Intents, gateway in 10 bits, guilds, gateway in 10 bits, guild messages, client dot once ready,
01:29dot once ready, console dot logged, logged in as client dot user dot tag back.
01:34And that's the full picture. If they saved you a search, hit like and subscribe.
01:38One clear answer, every day. See you in the next one.
01:41I'll see you in the next one.