This guide outlines the steps involved in setting up and running your Discord bot.
- Node.js and npm: Ensure you have these installed on your system.
- Discord Developer Portal Account: Create one (https://discord.com/developers/) if you don't already have it.
- Discord Bot: Create a bot in the Developer Portal and note its Token and Client ID.
- Discord Server Permissions: Grant your bot the necessary permissions in your Discord server (e.g., "Read Messages", "Send Messages").
-
Clone this repository.
-
Go to the folder:
cd echo-bot
-
Install necessary dependencies:
npm install
-
Create a config.env file in your project's root directory.
-
Add the following lines, replacing placeholders with your actual values:
BOT_TOKEN=YOUR_BOT_TOKEN CLIENT_ID=YOUR_DISCORD_CLIENT_ID SYSTEM_CHANNEL_ID=YOUR_SYSTEM_CHANNEL_ID INTRODUCTION_CHANNEL_ID=YOUR_INTRODUCTION_CHANNEL_ID
Security: This file stores sensitive information. Do not commit it to version control (e.g., Git).
-
Run the Bot:
npm start
For specific features and advanced bot setups, refer to the Discord.js documentation: https://discord.js.org/