Giter Club home page Giter Club logo

anti-phish-advanced's People

Contributors

emiliashiori avatar ithundxr avatar sfarmani avatar tsukuyomiotoko avatar

Stargazers

 avatar  avatar  avatar  avatar

anti-phish-advanced's Issues

Not working with Discord.js v14

This package seems to not work with Discord.js v14
Probably due to permission bit fields not being updated?

When I stop using this package, it doesn't crash my bot

at Receiver.receiverOnMessage (C:\Discord-Bots\test-bot\node_modules\ws\lib\websocket.js:1184:20)
    at Receiver.emit (node:events:394:28)
    at Receiver.dataMessage (C:\Discord-Bots\test-bot\node_modules\ws\lib\receiver.js:541:14)
    at Receiver.getData (C:\Discord-Bots\test-bot\node_modules\ws\lib\receiver.js:459:17)
    at Receiver.startLoop (C:\Discord-Bots\test-bot\node_modules\ws\lib\receiver.js:158:22)
    at Receiver._write (C:\Discord-Bots\test-bot\node_modules\ws\lib\receiver.js:84:10)
RangeError [BitFieldInvalid]: Invalid bitfield flag or number: SEND_MESSAGES.
    at Function.resolve (C:\Discord-Bots\test-bot\node_modules\discord.js\src\util\BitField.js:170:11)
    at C:\Discord-Bots\test-bot\node_modules\discord.js\src\util\BitField.js:165:54
    at Array.map (<anonymous>)
    at Function.resolve (C:\Discord-Bots\test-bot\node_modules\discord.js\src\util\BitField.js:165:40)
    at Client.generateInvite (C:\Discord-Bots\test-bot\node_modules\discord.js\src\client\Client.js:436:47)
    at Fish.checkForFish (C:\Discord-Bots\test-bot\node_modules\anti-phish-advanced\lib\classes\fish.js:36:59)
    at Client.<anonymous> (C:\Discord-Bots\test-bot\node_modules\anti-phish-advanced\lib\classes\fish.js:17:18)
    at Client.emit (node:events:406:35)
    at MessageCreateAction.handle (C:\Discord-Bots\test-bot\node_modules\discord.js\src\client\actions\MessageCreate.js:28:14)
    at Object.module.exports [as MESSAGE_CREATE] (C:\Discord-Bots\test-bot\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
    at WebSocketManager.handlePacket (C:\Discord-Bots\test-bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:352:31)
    at WebSocketShard.onPacket (C:\Discord-Bots\test-bot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:494:22)
    at WebSocketShard.onMessage (C:\Discord-Bots\test-bot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:328:10)
    at callListener (C:\Discord-Bots\test-bot\node_modules\ws\lib\event-target.js:290:14)
    at WebSocket.onMessage (C:\Discord-Bots\test-bot\node_modules\ws\lib\event-target.js:209:9)
    at WebSocket.emit (node:events:394:28)
    at Receiver.receiverOnMessage (C:\Discord-Bots\test-bot\node_modules\ws\lib\websocket.js:1184:20)
    at Receiver.emit (node:events:394:28)
    at Receiver.dataMessage (C:\Discord-Bots\test-bot\node_modules\ws\lib\receiver.js:541:14)
    at Receiver.getData (C:\Discord-Bots\test-bot\node_modules\ws\lib\receiver.js:459:17)
    at Receiver.startLoop (C:\Discord-Bots\test-bot\node_modules\ws\lib\receiver.js:158:22)
    at Receiver._write (C:\Discord-Bots\test-bot\node_modules\ws\lib\receiver.js:84:10) {
  code: 'BitFieldInvalid'
}

README: Stating which API it uses

Hi, I'm the maintainer of https://bitflow.dev/anti-fish and I'd love to see that link somewhere in your README. This will help people to find the API Server (which you're also not on just yet, check out the website!) and report missing domains and/or false-positives there.
Also I like to see a little credit to me ;)
Thank you!

Bug or something

hey so i was just testing my bot whether it detects phishing links or not. well it was working fine when i send the scam link second time it sends 2 message at the same time, i tried to search what was the error I couldn't find it so i tried to debug the error by using

console.log(data)

1)I've send the scan link in the channel and saw the terminal it looks fine
2)
i send the scam link again and saw the terminal it sends the data twice at the same time

so its probably the package problem so can you quickly fix it please?
thanks...

terminal
Screenshot 2022-06-12 232733

Result
Screenshot 2022-06-12 232847

Older version

I actually using djsV12 not 13 do you know what version does your package support djsV12?

suggestion

if possible can you guys make some methods like
where does the link came from?
when it was created?
which link is related to the domain?
and more....

i dont know whether the API you are using right now will allow you to create such kind of methods

can you add edit msg check

can you add a way so that it will even check edited msg
if this package was made in await i could have added this in message update event
bot its in his own event so :v

i just want you to make a way to prevent phishing by editing msg

error

Well uhh there is an error occurring in events because I'm using the old version of djsV12. So is your package doesn't support the old version? if yes, it isn't working for me.

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.