Giter Club home page Giter Club logo

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. People need to go to a specific channel and write /airdrop <their address> and they will have 1 chance on 10 to win.

Requirements

Discord

You need to have a Discord Developper Account. You can apply here: discord developer portal You can find more informations here: https://discordjs.guide/preparations/setting-up-a-bot-application.html

When you have your credentials you need to set them in a .env file

  • BOT_TOKEN=
  • GUILD_ID=

You also need to set the channel id related to your contest.

  • CHANNEL_ID=

Starton Connect

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. You will need to add it to the .env file aswell.

  • STARTON_API_KEY=

Deploy or import a smart contract on Starton

You can now deploy a new contract or import an existing one in Starton's Deploy section.

Once deployed you need to add in the .env file.

  • STARTON_SMART_CONTRACT_ADDRESS=
  • STARTON_SMART_CONTRACT_NETWORK=

Start the bot

Install

git clone https://github.com/starton-io/discord-airdrop-bot
cd discord-airdrop-bot

Start in dev:

yarn dev #(or npm run dev)

Start in production:

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

Extending the bot

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/

Authors

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.