GithubHelp home page GithubHelp logo

Comments (6)

TheRacingLion avatar TheRacingLion commented on June 1, 2024

Probably some bug in the code, will try to fix it asap.

from discord-selfbot.

AriRexouium avatar AriRexouium commented on June 1, 2024

I've actually noticed that it sometimes it clears messages, other times it doesn't.

Also, I noticed a bug similar to this when the bot tried to send a webhook message. This also can happen when it detects when someone sends a keyword.

[20:09:54] Mention  |> Ace Servers|> #commands|> Suggestions (281041859692855296):

@Aceheliflyer, Sent you a DM with information.

[20:10:01] Promise was rejected but there was no error handler Error
Error: 400 BAD REQUEST on POST /webhooks/307669804033114123/MSxT71x45Gtf2PVmSx99m9KG4ESZV9aBDlBjEYI2HC8WIN30h2r2lo5NdBXywexqGDmm

{"embeds": ["0"]}
    at IncomingMessage.resp.once (C:\Users\acehe_000\Desktop\Discord-SelfBot\node_modules\eris\lib\rest\RequestHandler.js:198:39)
    at Object.onceWrapper (events.js:293:19)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:188:7)
    at endReadableNT (_stream_readable.js:975:12)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)

Sometimes it spits out this error, other times it doesn't.

from discord-selfbot.

TheRacingLion avatar TheRacingLion commented on June 1, 2024

This happens when the bot tries to delete a message that has already been deleted. I think it is a bug in the new command message deletion config.

from discord-selfbot.

Arzte avatar Arzte commented on June 1, 2024

hmm, I wonder if a good way to handle it would be to ignore/remove messages that begin with the command prefix in the prune array prior to deleting all non-command messages.

from discord-selfbot.

Arzte avatar Arzte commented on June 1, 2024

If you change commands/prune.js on line 11 to
.filter(m => m.content.charAt(0).indexOf(self.config.prefix) === -1) you can get rid of the error for now, however it prevents any msg that starts with - to be ignored for pruning, not just the initial command msg.

from discord-selfbot.

Arzte avatar Arzte commented on June 1, 2024

#46 Fixes this error, I have tested and confirmed this on my local instance.

from discord-selfbot.

Related Issues (20)

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.