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.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: string2eval-discord-0.0.2.tar.gz
  • Upload date:
  • Size: 2.8 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.2.tar.gz
Algorithm Hash digest
SHA256 e69a77fe735047eda042fe597c17ad89cef8d41573668a28266ca02b2b268899
MD5 785f5c5f5d5c58b953969dfcb8416f1b
BLAKE2b-256 6e6bce0756584321628e2f5137a32d76c1a572fec3cfa5196cdb5c811b4654ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: string2eval_discord-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 37c76bb1fb1b0013c011d210b358a10f7f44304c5ed4d4b2349331f499e813cf
MD5 137cdca3456d91587cf820ecf2c3e6e7
BLAKE2b-256 e5cbe087fdfad37f93a9bdbbff54f15f4387f31351412cfcc0910f3c5b6e7c0a

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