FP4-update-ping is python program that utilizes a discord bot and a webcrawler to send a discord message when a new software update is released for the FairPhone4.
- Set up venv
python3 -m venv venv- Activate venv
source venv/bin/activate- Install the libraries
pip install discord.py dotenv requests BeautifulSoup4- Create a .env file with this content where Token ID and Server ID is replaced with your discord bots token and the Server ID is replaced with your discord servers id
#.gitignore
DISCORD_TOKEN='Token ID'
DEV_SERVER_ID='Server ID'- Exit venv
deactivate- Activate venv
source venv/bin/activate- Start the script
python discordBot.py - In your discord server run the command
- /fp4_update to start the bot and
- /fp4_update_stop to stop the bot