Discord bot written in Node.js that constantly checks if any friends recently played a match through the official Clash Royale API. If the bot finds that a friend played recently, it sends a direct message notification on Discord. Friend lists for each user are saved through a SQLite database.
Download the source code from the repository and compile all the source code, rename config-example.js to config.js, fill in the data in config.js, then run index.js.
- config.token: Discord bot token
- config.cr_key: Clash Royale API key
- Run:
node index.js
- Run in background on Linux (optional):
pm2 start index.js --name "CR Spy Bot"
- Node.js
- Discord.js
- Node Fetch
- Better SQLite3
- PM2 (optional)