Skip to content

A simple discord sales bot for NFT collections on Solana using Helius's Webhooks.

License

Notifications You must be signed in to change notification settings

t3chno/discord-sales-bot

 
 

Repository files navigation

Getting Started

In order to run locally:

  • Node.js needs to be installed on your OS
  • Clone the discord-sales-bot repo
  • Start the project
    1. Run npm install to install all our project dependencies
    2. Run npm run dev to run our application

npm install downloads the packages found in package.json

npm run dev runs the website. The website can now be accessed from localhost:3000 or 0.0.0.0

In order for queries to be made, a Helius API key is necessary - in order to obtain one, visit

https://www.helius.xyz

Now, create a file called .env.local on the outermost directory of the cloned repo, adding the following text into the file.

HELIUS_KEY = <your Helius API key>

The app is now fully functional on your local machine.


Walkthrough

Detailed blog explanation here.

  • Clone Repo

  • Visit Vercel, add repository and deploy with environmental variables (you may need to redeploy):

    • HELIUS_KEY - API Key generated from Helius Dashboard (not RPC URL)
    • DISCORD_WEBHOOK - Webhook URL from Discord (see blog)
  • Copy URL of deployed endpoint and setup a webhook at the Helius Dashboard

  • Enter other details e.g your collection's address

That's it!


For any inquiries, visit the Helius Discord or message Tidelaw#0707.

About

A simple discord sales bot for NFT collections on Solana using Helius's Webhooks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 80.1%
  • JavaScript 11.1%
  • CSS 8.8%