Giter Site home page Giter Site logo

ovoda / discord-airdrop-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from starton-io/discord-airdrop-bot

0.0 0.0 0.0 24 KB

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

TypeScript 100.00%

discord-airdrop-bot's Introduction

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

discord-airdrop-bot's People

Contributors

ovoda avatar altais avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.