GithubHelp home page GithubHelp logo

t3chno / discord-sales-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tidelaw/discord-sales-bot

0.0 0.0 0.0 65 KB

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

Home Page: https://discord-sales-bot.vercel.app

License: MIT License

JavaScript 11.09% TypeScript 80.13% CSS 8.78%

discord-sales-bot's Introduction

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.

discord-sales-bot's People

Contributors

tidelaw 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.