A Discord Bot for viewing the leaderboard of Poly Bridge 3, with extra features:
- Global leaderboard
- Top score history
- User profiles
- Histograms of score distribution
Uses Discord.js and TypeScript.
To run this project, you will need to add the following environment variables to your .env file:
botToken - Discord Bot token.
STEAM_WEBAPI_KEY - Key for valve's Steam Web API.
STEAM_USERNAME - Steam account username.
STEAM_PASSWORD - Steam account password.
The steam account must own a copy of Poly Bridge 3 in order to access the leaderboards. It should also have 2FA disabled so the bot can login to it easily. It is advised you create a steam account solely for running the bot!
Clone the project
git clone https://github.com/Conqu3red/PB3-Leaderboards-BotGo to the project directory
cd PB3-Leaderboards-BotInstall node dependencies
npm installOn Linux, install extra fonts so chinese characters can be rendered:
sudo apt-get install language-pack-gnome-zh-hans
sudo apt-get install fonts-wqy-microheiConfigure environment variables, then start the bot
npm run bot:devTo build this project, run
npm run buildThe compiled javascript code is located in the dist/ folder in the root of the project.
To run the built version:
node dist/src/bot/Index.js