A Discord bot that searches for players on DiamondRP FiveM server.
-
Install dependencies:
npm install
-
Create .env file: Create a
.envfile in the root directory with:BOT_TOKEN=your_bot_token_here CLIENT_ID=your_client_id_here GUILD_ID=your_guild_id_here -
Get Discord Bot Credentials:
- Go to Discord Developer Portal
- Create a new application
- Go to Bot section and create a bot
- Copy the bot token
- Copy the application ID (Client ID)
- Get your server ID (Guild ID)
-
Run the bot:
node bot.js
/search id:1234- Search for a player by ID
- 🎮 Real-time player data from DiamondRP server
- 🎨 Beautiful embeds with color-coded ping
- 📊 Player statistics and information
- âš¡ Fast response times
If you get ECONNRESET error:
- Try mobile hotspot
- Use VPN
- Disable Windows Firewall
- Check if Discord is blocked by your ISP