Discord Price Alert Bot with Rust
This is a 1-minute build. where I try to explain how to build X in just 1 minute.
Grab your discord hook and put it into your secrets file.
Set the secret to the state
Use Rocket, a Rust backend framework, to mount the webhook endpoint and pass in the state.
Create the webhook function, which accepts a json argument.
We extract the information we want to send.
Finally, we use request to send the message.
Setup a morality stream that calls this function on new events.
See you next time.