dshellInterpreter 0.2.10.5__py3-none-any.whl → 0.2.10.6__py3-none-any.whl
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.
- Dshell/DISCORD_COMMANDS/dshell_message.py +1 -0
- Dshell/_DshellInterpreteur/dshell_interpreter.py +4 -1
- {dshellinterpreter-0.2.10.5.dist-info → dshellinterpreter-0.2.10.6.dist-info}/METADATA +1 -1
- {dshellinterpreter-0.2.10.5.dist-info → dshellinterpreter-0.2.10.6.dist-info}/RECORD +7 -7
- {dshellinterpreter-0.2.10.5.dist-info → dshellinterpreter-0.2.10.6.dist-info}/WHEEL +0 -0
- {dshellinterpreter-0.2.10.5.dist-info → dshellinterpreter-0.2.10.6.dist-info}/licenses/LICENSE +0 -0
- {dshellinterpreter-0.2.10.5.dist-info → dshellinterpreter-0.2.10.6.dist-info}/top_level.txt +0 -0
|
@@ -25,6 +25,7 @@ async def dshell_send_message(ctx: Message, message=None, delete=None, channel=N
|
|
|
25
25
|
"""
|
|
26
26
|
Sends a message on Discord
|
|
27
27
|
"""
|
|
28
|
+
return -1
|
|
28
29
|
if delete is not None and not isinstance(delete, (int, float)):
|
|
29
30
|
raise Exception(f'Delete parameter must be a number (seconds) or None, not {type(delete)} !')
|
|
30
31
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from asyncio import sleep
|
|
2
2
|
from re import findall
|
|
3
3
|
from typing import TypeVar, Union, Any, Optional, Callable
|
|
4
|
+
from copy import deepcopy
|
|
4
5
|
|
|
5
6
|
from discord import AutoShardedBot, Embed, Colour, PermissionOverwrite, Permissions, Guild, Member, Role, Message
|
|
6
7
|
from discord.abc import PrivateChannel
|
|
@@ -103,7 +104,9 @@ class DshellInterpreteur:
|
|
|
103
104
|
self.env[node.variable.name.value] = 0
|
|
104
105
|
for i in DshellIterator(eval_expression(node.variable.body, self)):
|
|
105
106
|
self.env[node.variable.name.value] = i
|
|
106
|
-
|
|
107
|
+
c = deepcopy(node.body)
|
|
108
|
+
await self.execute(c)
|
|
109
|
+
del c
|
|
107
110
|
|
|
108
111
|
elif isinstance(node, VarNode):
|
|
109
112
|
|
|
@@ -3,14 +3,14 @@ Dshell/_utils.py,sha256=PJ3fwn8IMqUMnW9oTwfr9v4--rzHIhhLQoVVqjwjoJU,23
|
|
|
3
3
|
Dshell/DISCORD_COMMANDS/__init__.py,sha256=8JPQ-6-s8PkaacmOfQgyczUiLM6rUSceHEJ60oNSis0,173
|
|
4
4
|
Dshell/DISCORD_COMMANDS/dshell_channel.py,sha256=__vRngQD0USGBuJIuvHQckrtbhbufn5etaqXgNS90IA,16124
|
|
5
5
|
Dshell/DISCORD_COMMANDS/dshell_member.py,sha256=5Iw-2dydhYMZOw2nx0svZP9JpZWHOXC0qkL9tClJHtw,8840
|
|
6
|
-
Dshell/DISCORD_COMMANDS/dshell_message.py,sha256=
|
|
6
|
+
Dshell/DISCORD_COMMANDS/dshell_message.py,sha256=9ITf4GkcE_OvE4kFnwsDaQ7OxDlqOHmD7f2xQ-PrJ2Q,6975
|
|
7
7
|
Dshell/DISCORD_COMMANDS/dshell_pastbin.py,sha256=TkWFGRRTvhhJgvwkDFx9Fz4UM2UUFwxyq0laMVx0mUk,881
|
|
8
8
|
Dshell/DISCORD_COMMANDS/dshell_role.py,sha256=t_yRZRD0FKE2gT4dIDIsHz2PSZZztDVEkkqkG_OkNh4,5002
|
|
9
9
|
Dshell/DISCORD_COMMANDS/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
Dshell/DISCORD_COMMANDS/utils/utils_message.py,sha256=Pn0ljyeCvRfY4tlWHrSbIsxSFZZ5J4lDaeVme3WHp9o,1239
|
|
11
11
|
Dshell/DISCORD_COMMANDS/utils/utils_thread.py,sha256=tVl4msEwrWHY-0AytI6eY3JSs-eIFUigDSJfK9mT1ww,1457
|
|
12
12
|
Dshell/_DshellInterpreteur/__init__.py,sha256=xy5-J-R3YmY99JF3NBHTRRLsComFxpjnCA5xacISctU,35
|
|
13
|
-
Dshell/_DshellInterpreteur/dshell_interpreter.py,sha256=
|
|
13
|
+
Dshell/_DshellInterpreteur/dshell_interpreter.py,sha256=euHuRbj-kTCBd4yUyx5kV2el5UQfuXZ50IwxeAMHhGE,23163
|
|
14
14
|
Dshell/_DshellParser/__init__.py,sha256=ONDfhZMvClqP_6tE8SLjp-cf3pXL-auQYnfYRrHZxC4,56
|
|
15
15
|
Dshell/_DshellParser/ast_nodes.py,sha256=heOMQzAchQ8UroQaMSfU_6SYEXw-nme0jGcoVkCXPUs,15284
|
|
16
16
|
Dshell/_DshellParser/dshell_parser.py,sha256=RxS5GgmTel10pH9HII0X_8XZnVyIQGd9ThZZcZDpEqc,15545
|
|
@@ -18,8 +18,8 @@ Dshell/_DshellTokenizer/__init__.py,sha256=LIQSRhDx2B9pmPx5ADMwwD0Xr9ybneVLhHH8q
|
|
|
18
18
|
Dshell/_DshellTokenizer/dshell_keywords.py,sha256=yBTXKBCb7NZa-DGDeeyIZrl_CS1Y4WCmwshUdBHQhlo,5642
|
|
19
19
|
Dshell/_DshellTokenizer/dshell_token_type.py,sha256=gYIb2XN2YcgeRgmar_rBDS5CGmwfmxihu8mOW_d6lbE,1533
|
|
20
20
|
Dshell/_DshellTokenizer/dshell_tokenizer.py,sha256=LZGs4Ytuyx9Galazqtz32lS4Mmu9yZya1B7AzFQAQOk,7150
|
|
21
|
-
dshellinterpreter-0.2.10.
|
|
22
|
-
dshellinterpreter-0.2.10.
|
|
23
|
-
dshellinterpreter-0.2.10.
|
|
24
|
-
dshellinterpreter-0.2.10.
|
|
25
|
-
dshellinterpreter-0.2.10.
|
|
21
|
+
dshellinterpreter-0.2.10.6.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
|
|
22
|
+
dshellinterpreter-0.2.10.6.dist-info/METADATA,sha256=P6fV9zHl7oChQs1yb2Yy8BOIanUcjZcxjHAsyWb29yc,1123
|
|
23
|
+
dshellinterpreter-0.2.10.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
24
|
+
dshellinterpreter-0.2.10.6.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
|
|
25
|
+
dshellinterpreter-0.2.10.6.dist-info/RECORD,,
|
|
File without changes
|
{dshellinterpreter-0.2.10.5.dist-info → dshellinterpreter-0.2.10.6.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|