GithubHelp home page GithubHelp logo

nft-sales-bot's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nft-sales-bot's Issues

TypeError: Cannot read properties of undefined (reading 'length')

Hi. I need to trigger the bot for NEW sales.
I modified code:

const runSalesBot = async () => {
    console.log("starting sales bot...");
    const mostRecentSignature = await solanaConnection.getSignaturesForAddress(projectPubKey, { limit: 1 });
    const options = { until: mostRecentSignature[0].signature }

    let signatures;
    let lastKnownSignature;
    //const options = {};
    while (true) {
        try {
            const signatures = await solanaConnection.getSignaturesForAddress(projectPubKey, options);
            if (!signatures.length) {
                console.log("polling...")
                await timer(pollingInterval);
                continue;
            }
        } catch (err) {
            console.log("error fetching signatures: ", err);
            continue;
        }

Output:

starting sales bot...
polling...
polling...
polling...
polling...
polling...
polling...
polling...
polling...
polling...
polling...
polling...
/home/opc/nft-sales-bot/sales_bot.js:46
        for (let i = signatures.length - 1; i >= 0; i--) {
                                ^

TypeError: Cannot read properties of undefined (reading 'length')
    at runSalesBot (/home/opc/nft-sales-bot/sales_bot.js:46:33)

What i need to do? Thanks in advance

Cannot read metadata of undefined

Hi I am trying to run your bot on my local machine but get this error:

(base) C02R4002GW6W:nft-sales-bot local$ PROJECT_ADDRESS=EooDxue4oQCschn3U4EkBTcCLz5Mk3YMqx18YWeb6pW7 DISCORD_URL=https://discordapp.com/api/webhooks/924497703629635634/rxYwOwsN8ZR40sOWCPYATy4ih5rT0OoJ13Sio7okdtg9MHA2j7WszSsBOsgcyZG-f9fu node sales_bot.js
/Users/local/Desktop/nft-sales-bot/sales_bot.js:14
const { metadata: { Metadata } } = programs;
^

TypeError: Cannot read property 'Metadata' of undefined
at Object. (/Users/local/Desktop/nft-sales-bot/sales_bot.js:14:21)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47

Script stopped after a while on replit

Hi guys,

I ran the script on replit, but after a while it stopped without showing any issue.

Do you guys have any idea how we could do so it never stops?

Thanks
Mathieu

Not a supported marketplace

Hi just followed your instructions but after setting the environnement variable I got the following messages :

"Not a supported marketplace"
"Not a supported marketplace"
"Not a supported marketplace"
"Not a supported marketplace"
"Not a supported marketplace"

May you help me ?

Only pull recent sales example

In the example provided in the readme, to only grab current sales without history. There seems to be an issue when setting the signatures variable with const. If you change this to let it won't break the rest of the function.

while (true) {
  **let signatures** = await solanaConnection.getSignaturesForAddress(projectPubKey, options);

PROJECT_ADDRESS

What is this supposed to be exactly, can you provide an example?

Error

Hello! thanks for your bot
i'm trying to test this, but keep getting this error:

Sale at 19/10/2021 00:52:48 ---> 0.00145768 SOL
Signature: 5zoFddzUYbhGgJ8p8dWtPkCA4j51DyCxQDHgF9rNYa31oovJFnkdvp7LcEU7Nstx8wbMDavaRBdTuG3osvykgXWp
Name: Biochip 90
Image: https://www.arweave.net/oX4gDexzvuvS7ZtosxkvL2HKgEb5YnmjNFRI04cKmp4?ext=jpg
Marketplace: Magic Eden
error while going through signatures: TypeError: Cannot read property 'name' of undefined
at runSalesBot (/home/crohr/repos/solana_bots_ventas/nft-sales-bot/sales_bot.js:62:59)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5)

Sale at 19/10/2021 00:53:08 ---> 2.400005 SOL
Signature: vRjZk9y43eCA3kNjSCtCk66tF5DgrZgiKwSJvQVYpzufPwJGA1WS9pXvSDTPb9TyAwWXYr1bTqBVJay6Vsi4493
Name: Biochip 20
Image: https://www.arweave.net/ReHoeEljVWILmPkCRffrx4KWf4tdZcH65vxp0Eysxc8?ext=png
Marketplace: Magic Eden
error while going through signatures: TypeError: Cannot read property 'name' of undefined
at runSalesBot (/home/crohr/repos/solana_bots_ventas/nft-sales-bot/sales_bot.js:62:59)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5)

Sale at 19/10/2021 00:55:56 ---> 0.00145768 SOL
Signature: 3TMekK4FFTkM27PqmdecKSnJz5J7LsjEU7ND3oU53vt3v6tgcK39YAEA8UcBJ6GiiuuJHaqxz2chFADVah3LoqhN
Name: Fluidal 10
Image: https://www.arweave.net/UrheObpaTYGkefK82j3-Tj53VgqLNjg8aFvrvDEtUE4?ext=png
Marketplace: Magic Eden
error while going through signatures: TypeError: Cannot read property 'name' of undefined
at runSalesBot (/home/crohr/repos/solana_bots_ventas/nft-sales-bot/sales_bot.js:62:59)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5)

Marketplace Maps Magic Eden v2

Hi!! I want to know how to add to the map of Marketplaces the Magic Eden v2, how can I add it... the List or Sales using ME v2 are not triggered by the Bot. TY
image

Adding Twitter Support?

First thanks for the discord bot, its simple and does exactly what we require.

We keep getting asked for a twitter bot also, and as per birth of this project the prices banded about are high.

Is there any chance you plan on bringing in support for twitter posting also?

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.