Skip to content

starton-io/discord-airdrop-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starton Discord bot

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.

Prerequisites

Discord

You need a Discord Developper Account. You can apply on the Discord Developer portal More information on how to set up a bot application

Starton

  1. Go to Starton.io.
  2. Create an account for free.
  3. In the Developer section, create an API key.
  4. In the Wallet section, create a Wallet.
  5. Deploy a new Smart Contract or import an existing one. Learn more in the Smart contract documentation.

Setting your environment file

  1. In a .env file:
    1. Set your credentials.

      • BOT_TOKEN=
      • GUILD_ID=
    2. Set the Channel id from where the bot should execute.

      • CHANNEL_ID=
    3. Set the API key and the Wallet from Starton.

      • STARTON_API_KEY=
      • STARTON_WALLET=
    4. 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=

Starting the bot

Installation

# 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)

Starting in development

yarn dev #(or npm run dev)

Starting in production

yarn build && yarn start #(or npm run build && npm start)

Extending the bot

This bot uses the amazing Discord package.

You can find the full documentation on their website.

Authors

About

This bot allows you to airdrop tokens (ERC20) or NFTs (ERC721 / ERC1155) to your community directly from discord.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors