Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/androz2091/arduino-is-mybot-online
🚨 Simple status LED with Arduino to alert you if your bot is down!
https://github.com/androz2091/arduino-is-mybot-online
arduino bot detection discord down watch
Last synced: about 1 month ago
JSON representation
🚨 Simple status LED with Arduino to alert you if your bot is down!
- Host: GitHub
- URL: https://github.com/androz2091/arduino-is-mybot-online
- Owner: Androz2091
- Created: 2020-07-17T05:42:29.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-16T10:14:19.000Z (over 3 years ago)
- Last Synced: 2024-05-01T14:39:38.460Z (7 months ago)
- Topics: arduino, bot, detection, discord, down, watch
- Language: C++
- Homepage:
- Size: 287 KB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Arduino, is my bot online?
It opens a websocket connection with Discord to receive `PRESENCE_UPDATE` events. Once the target become offline, it makes a red led blinks, and once it comes back online, it turns on the green led.
## How to install
* Set up your project using the schematic below.
* Download the code.
* Rename the `secrets_sample.h` file to `secrets.h` and fill it.
* Upload it to your Arduino.
* You're done!Once the watched bot will be offline, the red led will blink.
## Used libraries
* [ArduinoJson](https://arduinojson.org/) (used to deserialize Discord payloads)
* [ArduinoWebsockets](https://github.com/gilmaimon/ArduinoWebsockets) (used to open a ws connection to Discord)You will also need to add this link: `http://arduino.esp8266.com/stable/package_esp8266com_index.json` to the Additional boards Manager to be able to select `Node mcu 1.0` as the card type.
## Used components
* [Arduino esp8266 mod (node mcu 1.0)](https://www.amazon.fr/SeeKool-d%C3%A9veloppement-Fonctionne-Parfaitement-Compatible/dp/B07DRF9YTV)
* Breadboard
* x2 color leds (one green, one red)
* x2 resistors (220 ohm 1/4 watt)
* x5 wires## Schematic
![schematic](./schematic.png)