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
discord-bot discord-py hacktoberfest hacktoberfest2022

GitHub Socialify

Add it to your server now 🔗🔗

💡 Bot's Innovation

Have you ever received messages like these?

                       

If you have been on Discord for a while, I am sure you have been warned to stay away from these links.
But the newcomers out there don't have any idea about these links and fall into such scams and lose access to their discord accounts.

⚙️ Tech Stack

Python Discord SQLite Wikipedia

💻 What exactly does it do?

Detective Discord is a bot that detects phishing links in discord messages, deletes them, warns the user who sent them, and increases their warning count by 1. Once the warning count hits 3, the user is kicked from the server and is also informed by the bot of the same.

kicked message Member Kicked

If the bot is unable to delete the message due to missing permissions (not every server admin allows the bot to delete server messages), it replies to the message -

image

This way, it alerts the members of the server and keeps them safe, until the Moderators eventually delete the message.

🤖 BOT ACTIONS :

weather

wiki

news

joke

dadjoke

avatar

Admin / Mod commands

reset_warn

image

image

⚙️ Logic for Phishing Link Detection

The rules to detect phishing links are quite simple:

For fetching the News, the bot uses the BBC API.
For fetching the weather, the bot uses the OpenWeatherMap API.
For fetching the jokes, the bot uses the pyjokes python library.
For fetching the Wikipedia summary, the bot uses the Wikipedia python library.

Install and Run Locally

Steps to contribute:

Contributors

❤️ Project Admin

Kanak Mittal