- Clone the repository:
git clone https://github.com/Javadkarami-com/Discord-Self-Bot.git
- Install the required dependencies:
cd discord-bot
npm install
- Create a
.envfile in the root directory and add your Discord bot token:
token=YOUR_BOT_TOKEN
- Start the bot:
node index.js
- The bot will log in and set its presence to "Playing IG: icyshop.ir".
@bot-mention: The bot will respond with a message.247 join <voice-channel-id>: The bot will join the specified voice channel.247 avchange <avatar-url>: The bot owner can change the bot's avatar to the specified URL.
ready: The bot logs in and sets its presence.message: The bot listens for messages and responds to the commands.
vc_error: Displayed when the voice channel ID is invalid.vc_success: Displayed when the bot successfully joins a voice channel.av_error: Displayed when the avatar URL is invalid.av_success: Displayed when the bot's avatar is successfully changed.errormsg: Displayed when an error occurs during the bot's operation.