https://github.com/dappnode/dappnode-announcements-bot
https://github.com/dappnode/dappnode-announcements-bot
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dappnode/dappnode-announcements-bot
- Owner: dappnode
- Created: 2021-11-04T13:45:52.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-15T08:59:17.000Z (about 4 years ago)
- Last Synced: 2025-08-12T18:45:28.618Z (5 months ago)
- Language: Go
- Size: 101 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DAppNode bot for announcements
This bot will get all new packages and new versions from the Smart Contracts Repository and Registry correspondingly. When a new package or version is published it will detect and do an announcement int he announcement channel of the dappnode discord server
This bot will be subscribed to:
- Registry Smart Contracts (this is all the packages published): this suscription will return all new versions published
- Repository Smart Contract: this suscription will return all new packages published
### ENV
The application has two modes deppending on the `GO_ENV` that can be set on the `docker-compose.yml`
- Development: `GO_ENV=development`
- Production: `GO_ENV=production`
#### Development
To start the application in development mode is needed to configure the `test.env` file located at `/build/src/test.env`
The values needed are:
- ANNOUNCEMENTS_CHANNEL_ID= // A discord channel ID
- GETH_RPC= // An ethereum RPC with websockets
- DISCORD_TOKEN= // A discord bot token
#### Production
To start the application in production mode is needed to configure a `.env` file at `/build/src/test.env`
Same values as in the test file
**Build**
`docker-compose build`
**Up**
`docker-compose up`