Skip to content

Latest commit

 

History

History
58 lines (50 loc) · 1.53 KB

README.md

File metadata and controls

58 lines (50 loc) · 1.53 KB

nostr-commits

Simple shell bot that broadcast nostr events when you update a github repo.

Requirements:

  • nostril websocat node
  • Github API key
  • A HEX private key to publish with

Getting Started

To get started with Nostr-Commits: clone the repo.

git clone https://github.com/gourcetools/nostr-commits
cd nostr-commits/src

Install Ocotkit and fs:

npm i fs octokit

Open both files to edit them (this example command use Sublime Text):

subl ./src/check.sh
subl ./src/check.js

For check.sh: edit the variables (PRIVKEY, RELAYS, POW, DELAY)

For check.js, line 5: set a github api key.

Edit config.js with what you want to search for, you can see examples of configurations in config_examples.txt.

subl ./config.js
subl ./config_examples.txt


Once you have completed these steps, save the changes to theses 3 files and run check.sh to start the bot.

./check.sh

The bot should be running in loop, you can look at the console for informations about what is going on.

image

🙋‍♂️ Need help?

Nostr:

hex:

0000005cc4586681ad8e7f4b75436fb7904b0e34ff072bb3406ddb90226d7eab 

npub:

npub1qqqqqhxytpngrtvw0a9h2sm0k7gykr35lurjhv6qdhdeqgnd064swghgx4 

nip05:

gourcetools@gourcetools.github.io