This bot allows you to give role when user own tokens (ERC20) or NFTs (ERC721 / ERC1155).
You need to have a Discord Developper Account. You can apply here: discord developer portal
When you have your credentials you need to set them in a .env
file
BOT_TOKEN=
You need to have a Starton Connect account. You can create a free account here
You can create an API key in the Developer
section.
git clone https://github.com/starton-io/discord-role-bot-back
cd discord-role-bot-back
yarn dev #(or npm run dev)
yarn build && yarn start #(or npm run build && npm start)
This bot use the amazing https://github.com/oceanroleplay/discord.ts package.
You can find the full documentation on their website: https://discord-ts.js.org/