/RPi-temperature-discord-bot

Program for monitoring Raspberry pi temperatures in a different yet useful way

Primary LanguagePythonMIT LicenseMIT

RPi-tempereture-discord-bot

THIS CODE DOES NOT WORK ON ITS OWN!!

Add an application in Discord developer

First add a new application in the Discord developer portal: https://discord.com/developers/applications Then create the bot and add the bot token to the code together with your desired command prefix.

Now add the bot to your desired server to test it.

Import packages

Remember to import the following packages on your raspberry pi:

pip install gpiozero
pip install discord.py

Run the code

Run the code on the raspberry pi by cd-ing to the dir of the code.

cd YOUR DIRECTORY

Then run the code:

python3 discord_bot.py

And then you can get the RPi temperature by typing your chosen command prefix followed by "cpu". For example, if the prefix is '.' then you'd have to type '.cpu'.