Skip to main content

Discord.py kernel: sessions, button router, and game-agnostic anticheat framework.

Project description

# another-discord-vision

Discord.py kernel for:

- sessions

- button routing

- game-agnostic anti-cheat

## Install (local)

pip install -e .

## Usage

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):

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



v.use\_anticheat(ac)



@v.on\_button("mygame")

async def handle(btn: vision.ButtonCtx):

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



bot.run("TOKEN")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

another_discord_vision-0.1.0.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

another_discord_vision-0.1.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file another_discord_vision-0.1.0.tar.gz.

File metadata

  • Download URL: another_discord_vision-0.1.0.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for another_discord_vision-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cfcb776df08c033a01fbeb2d3d2602ea87fa1f1cc884c19c56d015a8cc346396
MD5 c04e04721730eb2553515ef38ebbdfcf
BLAKE2b-256 fd34dc9481b95e5e74b4925c42a85e8808682f04abc716d95a7c74f86e980c4c

See more details on using hashes here.

File details

Details for the file another_discord_vision-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for another_discord_vision-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6de6ee6a240fb19c442683bcd3abc750b69c0bcfc39ba7934f7bb20e8a44029
MD5 477a6acde030f95633eefa62174bc089
BLAKE2b-256 b9e1abab1e9b351de84a6859b85283fd4d9387aa3cf2ad0c29d33d8cb36ac504

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page