This bot allows you to airdrop tokens (ERC20) or NFTs (ERC721 / ERC1155) to your community directly from Discord.
To attempt winning, users need to access a specific channel and enter /airdrop <their address>
. They have 1 chance out of 10 to win.
You need a Discord Developper Account. You can apply on the Discord Developer portal More information on how to set up a bot application
- Go to Starton.io.
- Create an account for free.
- In the
Developer
section, create an API key. - In the
Wallet
section, create a Wallet. - Deploy a new Smart Contract or import an existing one. Learn more in the Smart contract documentation.
- In a
.env
file:-
Set your credentials.
BOT_TOKEN=
GUILD_ID=
-
Set the Channel id from where the bot should execute.
CHANNEL_ID=
-
Set the API key and the Wallet from Starton.
STARTON_API_KEY=
STARTON_WALLET=
-
Set up the network, address and network explorer transaction route for your Smart Contract. The network explorer transaction route is used so that your users can check the transaction on an explorer such as etherscan.io
STARTON_SMART_CONTRACT_ADDRESS=
STARTON_SMART_CONTRACT_NETWORK=
NETWORK_EXPLORER_TX_ROUTE=
-
# Clone the project
git clone https://github.com/starton-io/discord-airdrop-bot
# Navigate to project folder
cd discord-airdrop-bot
# Install dependencies
yarn install #(or npm install)
yarn dev #(or npm run dev)
yarn build && yarn start #(or npm run build && npm start)
This bot uses the amazing Discord package.
You can find the full documentation on their website.