dependabot[bot] 7e58af69a4 Bump node-fetch from 2.6.1 to 2.6.7 in /scripts/storagesize-bot 2 роки тому
..
.env.example 238bf9008f move contributions/tech to scripts 2 роки тому
.gitignore 238bf9008f move contributions/tech to scripts 2 роки тому
db.json 238bf9008f move contributions/tech to scripts 2 роки тому
index.js 238bf9008f move contributions/tech to scripts 2 роки тому
package-lock.json 7e58af69a4 Bump node-fetch from 2.6.1 to 2.6.7 in /scripts/storagesize-bot 2 роки тому
package.json 238bf9008f move contributions/tech to scripts 2 роки тому
readme.md 238bf9008f move contributions/tech to scripts 2 роки тому

readme.md

Storage size notification bot for discord

Sends actual volume for Joystream Storage Providers to a channel every X hours or via PM with /storagesize.

Development

  • Take a copy of .env.example and add token of the bot and rename to .env
  • npm install
  • nodemon

Deployment

  • Take a copy of .env.example and add token of the bot and rename to .env
  • npm install
  • Use pm2 or any process managers to deploy
    • npm install pm2@latest -g or yarn global add pm2
    • pm2 start --name storagesize node index.js