Listens to SealCred ledgers and adds new roles to the SealCred Guild and Discord server.
- Clone this repo:
git clone https://github.com/Borodutch/discord-roles-maintainer
- Create
.env
with the environment variables listed below - Run
yarn
in the root folder - Run
yarn start
And you should be good to go! Feel free to fork and submit pull requests.
Variable | Description |
---|---|
VITE_ETH_NETWORK |
Ethereum network to use (defaults to @bwl/constants) |
VITE_ETH_RPC |
Ethereum node RPC URI (defaults to @bwl/constants) |
EXTERNAL_SC_ERC721_LEDGER_CONTRACT_ADDRESS |
External SealCred ERC721 Ledger contract address (defaults to @bwl/constants) |
SC_EMAIL_LEDGER_CONTRACT_ADDRESS |
Address of the SCEmailLedger contract (defaults to @bwl/constants) |
SC_ERC721_LEDGER_CONTRACT_ADDRESS |
Address of the SCERC721Ledger contract (defaults to @bwl/constants) |
GUILD_ID |
Guild.xyz ID |
DISCORD_SERVER_ID |
Discord server ID |
VERIFIED_HOLDER_ROLE_ID |
Role ID of the verified holder role |
WALLET_PRIVATE_KEY |
Private key to modify Guild.xyz |