ChainPatrol's Discord Bot is the official bot for Discord admins to enhance their community protection against scams and phishing attempts in their servers
- ✅ Check URLs against ChainPatrol's blocklist of known
phishing sites using the
/chainpatrol checkcommand. - 🚓 Report scam URLs to ChainPatrol using the
/chainpatrol reportcommand. - 📜 View a feed of scam reports for your organization in dedicated Discord channel
- 🏆 Display the ChainPatrol leaderboard of top reporters using the
/leaderboardcommand. - 👀 Regular scans of server messages to detect suspicious activity.
- 🚩 Automatic notifications of potential scams to keep users informed and safe
The moderation service can call this bot to delete a Discord message when a
moderation action (for example action.delete) is executed for an entity that
was submitted from Discord.
- Endpoint:
POST /webhooks/moderation/deleteon the same port as the health server (PORT, default3232). - Auth: HMAC-SHA256 headers
webhook-id,webhook-timestamp,webhook-signature(same scheme as moderation outbound webhooks). The signing secret must match the env varMODERATION_WEBHOOK_SECRET(use the same value as thesecreton the moderation action config that targets this URL). - Payload: JSON body with
typeaction.deleteoraction.delete.test,timestamp, anddatacontainingentityId,authorId, andexecutionId(as sent by moderation). Test deliveries setX-Test-Delivery: trueor useentityIdtest-entity-id; the bot responds200without calling Discord. - Entity ID: Discord messages must use
guildId:channelId:messageId(three colon-separated snowflakes). The bot sends this format when submitting text for moderation.
After deploy, configure the moderation project’s delete action webhook URL and secret, then validate with a test delivery. Track operational setup in Linear ENG-5463.
We welcome contributions from anyone interested in enhancing the security of the web3 community. If you would like to contribute to the project, please feel free to read through our issues and submit a pull request.
©️ MIT 2025 ChainPatrol