antifishpy-1.1.0
توضیحات
A simple Python module for the Bitflow Anti-Fish API.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | antifishpy-1.1.0 |
| نام | antifishpy |
| نسخه کتابخانه | 1.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Benjamin Churton |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/antifishpy/ |
| مجوز | - |
# Bitflow Anti-Fish API
This is a simple Python module for the [Bitflow Anti-Fish API](https://anti-fish.bitflow.dev/)!
## Installation
Use the package manager [pip](https://pypi.org/project/antifishpy/) to install this module.
```bash
pip install antifishpy
```
## Examples
```python
from antifishpy import antifish
from discord.ext import commands
client = commands.Bot(command_prefix="!")
af = antifish("Your Bot Name | Application Link") # This is to pass your application name as the User-Agent header.
@client.event
async def on_message(message):
msg = af.check_message(message)
print(msg)
# This will return the API response seen at https://anti-fish.bitflow.dev
# To get check for a matched domain, check for msg["match"] being True.
# To get the domain trust rating, check msg["matches"][0]["trust_rating"].
# You can also do af.is_scam(message), where it will return if there is a match and if the first domain match has a trust rating of over 0.95.
client.run("TOKEN")
```
## Credit where it's due
This module is powered by the [Bitflow Development's Anti-Fish API](https://anti-fish.bitflow.dev/).
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl antifishpy-1.1.0:
pip install antifishpy-1.1.0.whl
نصب پکیج tar.gz antifishpy-1.1.0:
pip install antifishpy-1.1.0.tar.gz