π©βπ» Step-by-step Installation Guide:
π Create Accounts: Firstly, you need to create an account on https://www.starton.com/ to obtain an API key. This key enables communication between your Discord server and Starton.
π Connect Your Server: Once you have your accounts set up, you can use the invite link or go to https://discord.starton.studio/ and click on βConnect your serverβ.
π€ Initialize the Bot: This is done by typing the command /init {starton-api-key} {administrator-role} {logging-channel} in your server, replacing the brackets and their content with your API key, the role that can manage the bot, and the channel where you want to get the logs, respectively.
π Import a Contract: Now that your bot is initialized, itβs time to import your smart contract with the command /smart-contract import {network} {smart-contract-type} {smart-contract-name} {smart-contract-address}. Replace the brackets and their content with your specific network, smart contract type, name, and address, respectively.
π Set a Trigger: Once youβve received your contract-id from the previous step, itβs time to create a trigger. To do this, use the command /trigger create {contract-id} {role}, where {contract-id} is the UUID of the contract you just imported, and {role} is the role you want to give to users who have tokens from the registered contract.
πΌ Connect Wallet: Finally, every user on your Discord server can connect their wallet to your bot and get roles related to their crypto-assets by typing /connect-wallet in the Discord chat. This will generate a link to verify their profile using their Metamask wallet.
π π Documentation: https://docs.starton.com/docs/tools/role-bot-discord