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

BE SURE TO ENABLE MEMBERS AND PRESENCE INTENTS OR ELSE IT WILL BE BROKEN.

funny example

import discord
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.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: string2eval-discord-0.0.1.tar.gz
  • Upload date:
  • Size: 2.9 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.1.tar.gz
Algorithm Hash digest
SHA256 057100c67bcb1be4163d073615abf953545ea8c5d69477dfba86a658dcd01c2d
MD5 4fd4440da4b074c20d6393ef9a1395b9
BLAKE2b-256 b2c123fd02e7af48f376b23188b87c8092664f47a7ea813ac64d0080a2668972

See more details on using hashes here.

File details

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

File metadata

  • Download URL: string2eval_discord-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0dcb28c7558dbba7a022bc07160aef37b7146fc408eff80541bdc028482442ef
MD5 e132f4f7809bdeb12d24c464e8670dc6
BLAKE2b-256 137ce1ebb61618af55e234394075548a6a192ce7f4d66aff9e51c914ab3f3209

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