Skip to content

AvaProtocol/faucet-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neumann faucet bot

Requirement

  • node: v16.13.1
  • npm
  • pm2

Configuration

Create an ecosystem.config.js file in the project root directory and set the parameters.

module.exports = {
  apps : [{
    name: 'server',
    script: './src/server/index.js',
    watch: false,
    env: {
      FAUCET_MNEMONIC: '<faucet_mnemonic_phrase>',
      CHAIN_WS_ENDPOINT: 'wss://neumann.api.onfinality.io/public-ws',
      PORT: 5555
    },
  }, {
    name: 'discord',
    script: './src/bot/discord.js',
    watch: false,
    env: {
      ACCESS_TOKEN: '<discord_access_token>',
      BACKEND_URL: 'http://127.0.0.1:5555'
    },
  }],
};

Launch

Install dependences

npm i

Run command to launch server

pm2 start

About

A Neumann-giving bot frontend to the faucet.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.9%
  • Dockerfile 2.4%
  • Shell 1.7%