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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: string2eval-discord-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 d045026ba4660630c12e67d4ef680d9d67c41b61844b6ba12e4f5f6da43d82ef
MD5 8964cbdaf8fe08e6785e3ee5d3555f95
BLAKE2b-256 c51a827e8344af12a74804b5c3655ee9d4ef5b80f93b88d3c0dadc41a1dadc41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: string2eval_discord-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9960c69ccc78a910d6144ea80afb60fabaaff953ba450748bb3df6fc9402d2e8
MD5 267c452a3ae4f9b957572a0aa5b418f3
BLAKE2b-256 9a86aca9719bc0773ee4d48e746d34adfccaaaa3998554c0ae7969af96555e5f

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