Skip to content

A Discord bot that tracks Nitrado boost history for multiple accounts

Notifications You must be signed in to change notification settings

sternd/nitrado-boost-bot

Repository files navigation

Discord Bot for Nitrado Boost History

A simple Discord bot that retrieves the boost history for Nitrado servers and posts them to Discord.

Installation

Use the package manager pip to install requirements.txt

pip3 install --target ./package -r requirements.txt
PYTHONPATH="PATH_TO_PACKAGE_FOLDER:$PYTHONPATH"
export PYTHONPATH

Create copy of "nitrapi_account_config_template.json" as "nitrapi_account_config.json". Then add the auth_tokens for each of the Nitrado accounts into the config.

Create a copy of ".env_template" as ".env". Add the values for: DISCORD_TOKEN, DISCORD_GUILD, and DISCORD_CHANNEL

Usage

Make sure to uncomment the last line in bot.py to run locally.

python3 bot.py

Lambda Deployment

cd project_root
cd ./package
zip -r9 ${OLDPWD}/nitrado-boost-bot.zip .
cd ..
zip -g nitrado-boost-bot.zip bot.py
zip -g nitrado-boost-bot.zip nitrapi_account_config.json
zip -g nitrado-boost-bot.zip gameserver_colors.json
aws lambda update-function-code --function-name nitrado-boost-bot --zip-file fileb://nitrado-boost-bot.zip

Known Issues

Contributing

Pull requests are welcome to the "master" branch. For major changes, please open an issue first to discuss what you would like to change.

License

GPLv3

About

A Discord bot that tracks Nitrado boost history for multiple accounts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages