An easy to use package for anti-spam features in python discord libraries.
Project description
DPY Anti-Spam
Ever felt the need to handle spammers in your discord, but don't have the time or effort to do so yourself? This package aims to help solve that issue by handling all the required logic under the hood, as well as handling the spammers.
How to use this right now?
Download the codebase:
> pip install Discord-Anti-Spam
A basic bot
import discord
from discord.ext import commands
from antispam import AntiSpamHandler
from antispam.enums import Library
intents = discord.Intents.default()
bot = commands.Bot(command_prefix="!", intents=intents)
bot.handler = AntiSpamHandler(bot, library=Library.DPY)
@bot.event
async def on_ready():
print(f"-----\nLogged in as: {bot.user.name} : {bot.user.id}\n-----")
@bot.event
async def on_message(message):
await bot.handler.propagate(message)
await bot.process_commands(message)
if __name__ == "__main__":
bot.run("Bot Token")
And that's it! Now, there will no doubt be bugs & 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.
Docs can be found here
Support
Want realtime help? Join the discord here.
License
This project is licensed under the MIT license
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file Discord Anti-Spam-1.5.1.tar.gz
.
File metadata
- Download URL: Discord Anti-Spam-1.5.1.tar.gz
- Upload date:
- Size: 56.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.12.0 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbcefaba284cb8563d4e42687df4379ae4378348b6d778c8b6e2f9b832fc5cd4 |
|
MD5 | f65f550d578443811ddbc20e3c1b7770 |
|
BLAKE2b-256 | da01076df2d4e4c83e8ef51a3788a84db1bdb852c3da9c3a261a61f4563e19df |
Provenance
File details
Details for the file Discord_Anti_Spam-1.5.1-py3-none-any.whl
.
File metadata
- Download URL: Discord_Anti_Spam-1.5.1-py3-none-any.whl
- Upload date:
- Size: 101.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.12.0 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64da2336ac29af083cdc11e7b53bf063bd4075a41ba30cce2a7d3cf55aea8ea6 |
|
MD5 | b2530b5906a4550d51c442ddb52b5924 |
|
BLAKE2b-256 | ba479a69a084ac6227f923a01b75c6c4399f44b59a6edf68382e3279897bd2bb |