{"id":13458775,"url":"https://github.com/Skelmis/Discord-Anti-Spam","last_synced_at":"2025-03-24T15:32:32.245Z","repository":{"id":37830356,"uuid":"296020250","full_name":"Skelmis/Discord-Anti-Spam","owner":"Skelmis","description":"Ever wanted a bot to automatically deal with spammers? This is your Python library for it.","archived":false,"fork":false,"pushed_at":"2023-07-24T10:25:37.000Z","size":1082,"stargazers_count":72,"open_issues_count":2,"forks_count":17,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-05-01T16:17:10.149Z","etag":null,"topics":["bot","discord","discord-api","discord-bot","python"],"latest_commit_sha":null,"homepage":"https://dpy-anti-spam.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Skelmis.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":["Skelmis"]}},"created_at":"2020-09-16T12:04:35.000Z","updated_at":"2024-03-27T05:19:56.000Z","dependencies_parsed_at":"2024-01-16T19:12:00.343Z","dependency_job_id":null,"html_url":"https://github.com/Skelmis/Discord-Anti-Spam","commit_stats":{"total_commits":870,"total_committers":9,"mean_commits":96.66666666666667,"dds":"0.15402298850574714","last_synced_commit":"d35015b86f231cd6d1f88cb2c2a8065422a71f46"},"previous_names":["skelmis/dpy-anti-spam"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skelmis%2FDiscord-Anti-Spam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skelmis%2FDiscord-Anti-Spam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skelmis%2FDiscord-Anti-Spam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skelmis%2FDiscord-Anti-Spam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Skelmis","download_url":"https://codeload.github.com/Skelmis/Discord-Anti-Spam/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245298425,"owners_count":20592608,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","discord","discord-api","discord-bot","python"],"created_at":"2024-07-31T09:00:57.174Z","updated_at":"2025-03-24T15:32:27.237Z","avatar_url":"https://github.com/Skelmis.png","language":"Python","funding_links":["https://github.com/sponsors/Skelmis"],"categories":["Python","Libraries and Extensions"],"sub_categories":["Miscellaneous"],"readme":"# DPY Anti-Spam\n---\n\n[![Pytest](https://github.com/Skelmis/DPY-Anti-Spam/actions/workflows/pytest.yml/badge.svg?branch=master)](https://github.com/Skelmis/DPY-Anti-Spam/actions/workflows/pytest.yml)\n[![Coverage Status](https://coveralls.io/repos/github/Skelmis/Discord-Anti-Spam/badge.svg?branch=master)](https://coveralls.io/github/Skelmis/Discord-Anti-Spam?branch=master)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![PyPI download month](https://img.shields.io/pypi/dm/Discord-Anti-Spam.svg)](https://pypi.python.org/pypi/Discord-Anti-Spam/)\n[![Discord](https://img.shields.io/discord/780784732484141077.svg?label=\u0026logo=discord\u0026logoColor=ffffff\u0026color=7389D8\u0026labelColor=6A7EC2)](https://discord.gg/BqPNSH2jPg)\n\nEver felt the need to handle spammers in your discord, but don't have the time or effort to do so yourself? \nThis package aims to help solve that issue by handling all the required logic under the hood, as well as handling the spammers.\n\n\n---\nHow to use this right now?\n\nDownload the codebase:\n```\n\u003e pip install Discord-Anti-Spam\n```\n\nA basic bot\n\n```python\nimport discord\nfrom discord.ext import commands\nfrom antispam import AntiSpamHandler\nfrom antispam.enums import Library\n\nintents = discord.Intents.default()\nbot = commands.Bot(command_prefix=\"!\", intents=intents)\nbot.handler = AntiSpamHandler(bot, library=Library.DPY)\n\n\n@bot.event\nasync def on_ready():\n    print(f\"-----\\nLogged in as: {bot.user.name} : {bot.user.id}\\n-----\")\n\n\n@bot.event\nasync def on_message(message):\n    await bot.handler.propagate(message)\n    await bot.process_commands(message)\n\n\nif __name__ == \"__main__\":\n    bot.run(\"Bot Token\")\n```\n\nAnd that's it!\nNow, there will no doubt be bugs \u0026 changes etc. But, you can use this as is now and all I ask is you create an issue for anything you encounter while using this codebase.\n\n#### Docs can be found [here](https://dpy-anti-spam.readthedocs.io/en/latest/?)\n\n---\n\n### Support\n\nWant realtime help? Join the discord [here](https://discord.gg/BqPNSH2jPg).\n\n---\n\n### License\nThis project is licensed under the MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSkelmis%2FDiscord-Anti-Spam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSkelmis%2FDiscord-Anti-Spam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSkelmis%2FDiscord-Anti-Spam/lists"}