dshellInterpreter 0.2.18.5__tar.gz → 0.2.18.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of dshellInterpreter might be problematic. Click here for more details.
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/_DshellInterpreteur/dshell_interpreter.py +3 -3
- {dshellinterpreter-0.2.18.5/dshellInterpreter.egg-info → dshellinterpreter-0.2.18.6}/PKG-INFO +1 -1
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6/dshellInterpreter.egg-info}/PKG-INFO +1 -1
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/setup.py +1 -1
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/__init__.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/dshell_channel.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/dshell_interaction.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/dshell_member.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/dshell_message.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/dshell_pastbin.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/dshell_role.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/utils/__init__.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/utils/utils_global.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/utils/utils_list.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/utils/utils_member.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/utils/utils_message.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/utils/utils_permissions.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/utils/utils_string.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/utils/utils_thread.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/_DshellInterpreteur/__init__.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/_DshellInterpreteur/errors.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/_DshellParser/__init__.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/_DshellParser/ast_nodes.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/_DshellParser/dshell_parser.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/_DshellTokenizer/__init__.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/_DshellTokenizer/dshell_keywords.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/_DshellTokenizer/dshell_token_type.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/_DshellTokenizer/dshell_tokenizer.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/__init__.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/_utils.py +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/LICENSE +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/README.md +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/dshellInterpreter.egg-info/SOURCES.txt +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/dshellInterpreter.egg-info/dependency_links.txt +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/dshellInterpreter.egg-info/requires.txt +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/dshellInterpreter.egg-info/top_level.txt +0 -0
- {dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/setup.cfg +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from asyncio import sleep
|
|
1
|
+
from asyncio import sleep, run_coroutine_threadsafe, get_running_loop
|
|
2
2
|
from re import findall
|
|
3
3
|
from typing import TypeVar, Union, Any, Optional, Callable
|
|
4
4
|
from copy import deepcopy
|
|
@@ -90,7 +90,7 @@ class DshellInterpreteur:
|
|
|
90
90
|
'__guild_forum_channels__': ListNode([channel.id for channel in message.channel.guild.forum_channels]),
|
|
91
91
|
'__guild_channels_count__': len(message.channel.guild.channels),
|
|
92
92
|
|
|
93
|
-
} if message is not None and not debug else {'__ret__': None}
|
|
93
|
+
} if message is not None and not debug else {'__ret__': None} # {} is used in debug mode, when ctx is None
|
|
94
94
|
if vars_env is not None: # add the variables to the environment
|
|
95
95
|
self.env.update(vars_env)
|
|
96
96
|
self.vars = vars if vars is not None else ''
|
|
@@ -223,7 +223,7 @@ class DshellInterpreteur:
|
|
|
223
223
|
return self.env[token.value]
|
|
224
224
|
return token.value
|
|
225
225
|
elif token.type == DTT.EVAL_GROUP:
|
|
226
|
-
self.execute(token.value)
|
|
226
|
+
run_coroutine_threadsafe(self.execute(token.value), get_running_loop())
|
|
227
227
|
return self.env['__ret__']
|
|
228
228
|
elif token.type == DTT.STR:
|
|
229
229
|
for match in findall(rf"\$({'|'.join(self.env.keys())})", token.value):
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="dshellInterpreter",
|
|
8
|
-
version="0.2.18.
|
|
8
|
+
version="0.2.18.6",
|
|
9
9
|
author="Chronos",
|
|
10
10
|
author_email="vagabonwalybi@gmail.com",
|
|
11
11
|
description="A Discord bot interpreter for creating custom commands and automations.",
|
{dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/__init__.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/dshell_channel.py
RENAMED
|
File without changes
|
|
File without changes
|
{dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/dshell_member.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/dshell_message.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/dshell_pastbin.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/dshell_role.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/DISCORD_COMMANDS/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/_DshellInterpreteur/__init__.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/_DshellInterpreteur/errors.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/_DshellParser/dshell_parser.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/_DshellTokenizer/__init__.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/Dshell/_DshellTokenizer/dshell_keywords.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/dshellInterpreter.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/dshellInterpreter.egg-info/requires.txt
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.18.5 → dshellinterpreter-0.2.18.6}/dshellInterpreter.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|