A Discord bot (webhook) to track Sheet Head activity on the Pooled NFT protocol and post updates to Discord.
- Install firebase-tools
$ npm install -g firebase-tools
- Create a firebase project and upgrade to the Blaze (paid) plan.
- Follow the "MAKING A WEBHOOK" instructions in the Discord docs to create a webhook for your Discord server.
- Add the
DISCORD_WEBHOOK_URL
project secret and set it to your Webhook URL:firebase functions:secrets:set DISCORD_WEBHOOK_URL
- Add the
OPENAI_API_KEY
project secret and set it to your OpenAI API key:firebase functions:secrets:set OPENAI_API_KEY
- Add the
INFURA_PROJECT_ID
project secret and set it to your Infura project ID:firebase functions:secrets:set INFURA_PROJECT_ID
- Add the
INFURA_PROJECT_SECRET
project secret and set it to your Infura project secret:firebase functions:secrets:set INFURA_PROJECT_SECRET
- Create a Realtime Database in the Firebase console by following the instructions and set the rules for the database to:
{ "rules": { ".read": "auth != null", ".write": "auth != null" } }
- Enable Secret Manager API by visiting the Secret Manager API page of your Firebase project and clicking "Enable". Where the URL can be found by replacing
<FIREBASE_PROJECT>
with your Firebase project ID in the following URL:https://console.developers.google.com/apis/api/secretmanager.googleapis.com/overview?project=<FIREBASE_PROJECT>
.
Deploy functions using the Firebase CLI:
$ firebase deploy
This project is licensed under MIT.