GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - zahin-mohammad/energi3-slack-app: A slack app to track changes in an NRG (energi) address

This repository was archived by the owner on May 30, 2021. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

26 Commits
26 Commits

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
.gitignore
.gitignore
 
 
energi.png
energi.png
 
 
energi.svg
energi.svg
 
 
example.png
example.png
 
 
readme.md
readme.md
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

NRG Slack Bot

A slack custom integration using a heroku scheduler to update slack channel when an address(s) have balance changes.

Example of working bot

Requirements:

  • Heroku account
  • Firebase account
  • Heroku CLI
  • git
  • Slack workspace with admin privilege

Getting Started

  • Create a slack custom integration if you have not already
  • git clone [email protected]:zahin-mohammad/nrg-slack-app.git
  • cd nrg-slack-app
  • Create a heroku project (skip if its already set up)
    • heroku login
    • heroku create
    • heroku push origin master
  • Setup Environment Variables:
    • These can also be configured on the web client for heroku
    • heroku config:set webhook="{slack incoming web hook}"
    • heroku config:set addressList="{space separated list of addresses}"
  • Install the scheduler via the CLI
    • heroku addons:create scheduler:standard
  • Configure the scheduler
    • heroku addons:open scheduler
    • python3 ./bin/nrg-address-summary.py run command
    • configure frequency as desired
  • Setup Firebase
    • Create a firebase project at https://firebase.google.com/
    • Create a database
    • Download a private key from settings -> Service Accounts
    • Rename this file to firestore-admin.json
  • Add Firebase Admin Cred to Heroku
    • On the web heroku client, paste in the contents of firestore-admin.json into a config var (environment variable) called firestoreAdmin
  • Verify that the script works
    • heroku run python3 ./bin/nrg-address-bot.py
    • Should see a slack message

About

A slack app to track changes in an NRG (energi) address

Topics

automationbotcryptocurrencyenerginrgslack

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.