blueridger / sc-address-bot

2 stars 5 forks source link

Change config.js #1

Open nya-elimu opened 2 years ago

nya-elimu commented 2 years ago

@blueridger The documentation says:

  1. Fork this repo
  2. Change config.js

What does "Change config.js" entail?

module.exports = {
    GUILD_IDS: {
        "798975165342023700": {
            repo: "sourcecred/dev-cred", 
            branch: "payout-bot-test", 
            chainId: "1", 
            tokenAddress: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
        }
    },
}

Is "798975165342023700" the only thing that needs to be changed? Or do we need to change any of those other values as well?

blueridger commented 2 years ago

The number should be your discord server ID. The repo and branch should point to your sourcecred instance, probably the main branch. This is where the bot will persist changes. The chainid and token address is for communities who want to distribute ethereum-based tokens, and those can be ignored if they don't apply. (That example is for USDC on Ethereum mainnet)