Skip to main content

No project description provided

Project description

hi arno

import string2eval to do the kurdish and use string2eval.evaluate(ctx, client, body) to do th

ctx is ctx, client is your client, and body is the code you want to evaluate

while defining client put your id in owner_ids to make it ONLY work when you use the eval. you can put more than one person

DO NOT put @commands.is_owner() or try to make the command owner only yourself. it handles that automatically.

if someone who doesn't have access tries to use it it will raise NoPermsToEval

ENABLE PRESENCE AND MEMBERS INTENT (NOT REQUIRED BUT WORKS BEST)

funny example

from discord.ext import commands
import string2eval

TOKEN = "??"

client = commands.Bot(command_prefix="!!!", owner_ids=[429935667737264139])

client.remove_command("help")

@client.command(name="eval")
async def _eval(ctx, *, body):
    try:
        await string2eval.evaluate(ctx, client, body)
    except string2eval.NoPermsToEval:
        await ctx.send("lol cant even use eval smh")

client.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

string2eval-discord-0.0.4.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

string2eval_discord-0.0.4-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file string2eval-discord-0.0.4.tar.gz.

File metadata

  • Download URL: string2eval-discord-0.0.4.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.8

File hashes

Hashes for string2eval-discord-0.0.4.tar.gz
Algorithm Hash digest
SHA256 9aaff41743aea1ab310f4d5b8e133d5277f12aae4e695a37d2c1f21653e2dd2d
MD5 892b69c10bfa4b18b067994da79f36ee
BLAKE2b-256 c6c00c108b1f4d05523f1a5c831347d55c5b54394aefdc3e56cd9429306f81fc

See more details on using hashes here.

File details

Details for the file string2eval_discord-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: string2eval_discord-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.8

File hashes

Hashes for string2eval_discord-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ea240c533cbd2504607fa82ccad59d53a31a62498afeb51c0f082c28ec8b43f7
MD5 fdba2f22fd87048d4d1744d2321396bd
BLAKE2b-256 ebe190d470ac2b17caa48e12649284b4aeebca6756e088d4a95dd252ac05f80a

See more details on using hashes here.

Supported by

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