A plain JavaScript(rawDog) Discord bot that provides real-time PUBG (PlayerUnknown's Battlegrounds) statistics, match history and player rankings.
- Detailed stats from recent matches
- Performance metrics and rankings
- Map-specific information
- Team composition details
- Lifetime performance metrics
- Weapon usage statistics
- Survival ratings
- Win ratios and trends
- Current season performance
- Rank progression tracking
- Competitive statistics
- Division placement
|
/matchhistory
|
View recent match details
|
/matchhistory [username] [matches?]
/playerstats
|
Check player statistics
|
/playerstats [username]
/seasonrank
|
View season ranking
|
-
Invite the Bot
- Click here to add the bot to your server
- Select the server and authorize
-
Basic Usage
/matchhistory NerdyToken /playerstats NerdyToken /seasonrank NerdyToken
- Node.js 16.x or higher
- Discord Bot Token
- PUBG API Key
-
Clone the repository
git clone https://github.com/Ryggs/pubg-stats-bot.git cd pubg-stats-bot
-
Install dependencies
npm install
-
Configure environment
cp .env.example .env # Edit .env with your tokens
-
Start the bot
# Development npm run dev # Production npm start
Example .env
file:
DISCORD_TOKEN=your_discord_token
PUBG_API_KEY=your_pubg_api_key
NODE_ENV=development
Run the test suite:
# Run all tests
npm test
# Run specific tests
npm run test:unit
npm run test:integration
- 99.9% Uptime
- <50ms Response Time
- Rate Limited to prevent API abuse
- Automatic error recovery
We welcome contributions! See our Contributing Guidelines for details.
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
Found a bug? Please open an issue with:
- Bug description
- Steps to reproduce
- Expected vs actual behavior
- Add support for custom matches
- Implement tournament tracking
- Add weapon statistics
- Create web dashboard
- Add team tracking
Need help? Here are your options:
- Check Troubleshooting Guide
- Join our Discord Server
- Open a GitHub Issue
This project is licensed under the MIT License - see the LICENSE file for details. Any use of this code must include clear attribution to the original repository at PUBGPal bot
Made with ❤️ by Ryggs
⭐ Star us on GitHub | Report Issues