Giter Site home page Giter Site logo

discord-os-nft-sales-bot's Introduction

OpenSea NFT sales bot for Discord

Queries OpenSea APIs and posts to a specified channel in your Discord server.

Built with ๐Ÿ’™ and:

Support for multiple marketplaces: https://github.com/ninjastacktech/discord-eth-nft-sales-bot (instead of polling OpenSea API, it subscribes to Ethereum websocket events)

Usage

var bot = new NinjaBot(new NinjaBotOptions
{
    DiscordBotToken = "<discord_bot_token>",
    DiscordChannelId = "<discord_channel_id>",
    DiscordWebhookUrl = "<discord_webhook_url>",
    OpenSeaApiKey = "<opensea_api_key>",
    OpenSeaCollectionSlug = "<collection_slug>",
    PollingIntervalSeconds = 60000,
});

await bot.StartAsync();

Options

  • OpenSeaApiKey [required]. The OpenSea API Key. Request one here: https://docs.opensea.io/reference/request-an-api-key
  • OpenSeaCollectionSlug [required]. The name of the collection on OpenSea.
  • DiscordBotToken [required]. Create an application using the Discord Developer Portal and then create a bot within that application that has permissions to post messages.
  • DiscordChannelId [required]. The id of the channel you want the bot to post into. Get this by turning on Developer Mode in Discord, then click the channel settings icon.
  • DiscordWebhookUrl [required]. Recommended option (automatically restricts the bot to only post to the specified channel). You can either set the webhook URL or the bot token & channel id.
  • PollingIntervalSeconds [optional]. How often should the bot query OpenSea API (default: 60 seconds).

MIT License

discord-os-nft-sales-bot's People

Contributors

cristipufu avatar dependabot[bot] avatar

Stargazers

 avatar  avatar

Watchers

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