kanakmi / Detective-Discord

A discord bot that can detect Nitro Scam Links and delete them to protect other users. Add it to your server now.
https://discord.com/api/oauth2/authorize?client_id=934344337171554314&permissions=1376537242626&scope=bot%20applications.commands
MIT License
17 stars 16 forks source link

Create a similar logic for GitHub Scam Link #3

Open kanakmi opened 2 years ago

kanakmi commented 2 years ago

Refer nitroscam_class.py to create a similar logic for github scam links.

heraldjose10 commented 2 years ago

I will try to implement this.

Can you give more pointers on how to implement this? Do I need to create a new function inside nitroscam_class.py file or create a new file?

As far as I understood, I should be making a function that checks if the domain name is similar to github and if its similar flag it as scam. Am I right?

kanakmi commented 2 years ago

You will have to create a new class like the one in nitroscam_class.py and implement all the functions inside that class. Also, make sure you review 6-7 links related to the github scam when building the logic to have a better view on the problem and test it out on all those links before making a PR. Also, carefully select the safe domains for the GitHub scam so that no valid link is marked as spam by the bot.

kanakmi commented 2 years ago

Let me know if you need any additional help.

heraldjose10 commented 2 years ago

Hi @kanakmi I couldnt add the bot to my own server. I went to discord dev dashboard, created a new app, copied the token and ran bot.py file. Could you please guide me. Thanks

kanakmi commented 2 years ago

Hey @heraldjose10 Can you share the exact error that you are facing? Maybe add a few log files or a screenshot. The steps seem to be correct and in-order.