Metadata-Version: 2.4
Name: another-discord-vision
Version: 0.1.0
Summary: Discord.py kernel: sessions, button router, and game-agnostic anticheat framework.
Author: YourName
License: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: discord.py>=2.3.0

\# another-discord-vision



Discord.py kernel for:

\- sessions

\- button routing

\- game-agnostic anti-cheat



\## Install (local)

pip install -e .



\## Usage

```python

import discord

from discord.ext import commands

import another.discord.vision as vision

from another.discord.vision import anticheat



bot = commands.Bot(command\_prefix="!", intents=discord.Intents.all())

v = vision.Vision(bot)



ac = anticheat.AntiCheat()



@ac.rule("no-swear")

def no\_swear(msg, ctx):

&nbsp;   return anticheat.matchers.contains\_any(msg.content, \["كلمة\_ممنوعة"])



v.use\_anticheat(ac)



@v.on\_button("mygame")

async def handle(btn: vision.ButtonCtx):

&nbsp;   await btn.interaction.response.send\_message(f"act={btn.action} payload={btn.payload}", ephemeral=True)



bot.run("TOKEN")

