Skip to content

hifi-finance/sheety-discord-functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sheety Discord Functions

A Discord bot (webhook) to track Sheet Head activity on the Pooled NFT protocol and post updates to Discord.

Set up and Deploy

  1. Install firebase-tools
    $ npm install -g firebase-tools
  2. Create a firebase project and upgrade to the Blaze (paid) plan.
  3. Follow the "MAKING A WEBHOOK" instructions in the Discord docs to create a webhook for your Discord server.
  4. Add the DISCORD_WEBHOOK_URL project secret and set it to your Webhook URL:
    firebase functions:secrets:set DISCORD_WEBHOOK_URL
  5. Add the OPENAI_API_KEY project secret and set it to your OpenAI API key:
    firebase functions:secrets:set OPENAI_API_KEY
  6. Add the INFURA_PROJECT_ID project secret and set it to your Infura project ID:
    firebase functions:secrets:set INFURA_PROJECT_ID
  7. Add the INFURA_PROJECT_SECRET project secret and set it to your Infura project secret:
    firebase functions:secrets:set INFURA_PROJECT_SECRET
  8. 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"
        }
    }
  9. 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

Deploy functions using the Firebase CLI:

$ firebase deploy

License

This project is licensed under MIT.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published