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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file string2eval-discord-0.0.5.tar.gz.
File metadata
- Download URL: string2eval-discord-0.0.5.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d70f973d3157a1779c558c9340ce842af45331e37d4d4dfbef323a19f77f1ffe
|
|
| MD5 |
c6ebcc8c939b945797efdcaa6c73003a
|
|
| BLAKE2b-256 |
5c8f7c48480f1b1a5e9bc9848657d6aef055f5cd564745912571ed06bab2b63e
|
File details
Details for the file string2eval_discord-0.0.5-py3-none-any.whl.
File metadata
- Download URL: string2eval_discord-0.0.5-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
247e5275551f9884868197ac9987f63f8a1e5eb35c5b15e56e689bb771ad1868
|
|
| MD5 |
143cd510acdab03a788baf337481a273
|
|
| BLAKE2b-256 |
415ce1aee614209231ddd6b21ebcc2e236262740df6ee552cab55cea76387dbf
|