dshellInterpreter 0.2.13.4__py3-none-any.whl → 0.2.13.5__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/_DshellInterpreteur/dshell_interpreter.py +9 -1
- {dshellinterpreter-0.2.13.4.dist-info → dshellinterpreter-0.2.13.5.dist-info}/METADATA +1 -1
- {dshellinterpreter-0.2.13.4.dist-info → dshellinterpreter-0.2.13.5.dist-info}/RECORD +6 -6
- {dshellinterpreter-0.2.13.4.dist-info → dshellinterpreter-0.2.13.5.dist-info}/WHEEL +0 -0
- {dshellinterpreter-0.2.13.4.dist-info → dshellinterpreter-0.2.13.5.dist-info}/licenses/LICENSE +0 -0
- {dshellinterpreter-0.2.13.4.dist-info → dshellinterpreter-0.2.13.5.dist-info}/top_level.txt +0 -0
|
@@ -438,6 +438,14 @@ def build_ui(ui_node: UiNode, interpreter: DshellInterpreteur) -> EasyModifiedVi
|
|
|
438
438
|
return view
|
|
439
439
|
|
|
440
440
|
async def ui_button_callback(button, interaction, data):
|
|
441
|
+
"""
|
|
442
|
+
Callback for UI buttons.
|
|
443
|
+
Executes the code associated with the button.
|
|
444
|
+
:param button:
|
|
445
|
+
:param interaction:
|
|
446
|
+
:param data:
|
|
447
|
+
:return:
|
|
448
|
+
"""
|
|
441
449
|
code = data.pop('code', None)
|
|
442
450
|
local_env = {}
|
|
443
451
|
if code is not None:
|
|
@@ -460,7 +468,7 @@ async def ui_button_callback(button, interaction, data):
|
|
|
460
468
|
'__private_channel__': isinstance(interaction.channel, PrivateChannel),
|
|
461
469
|
}
|
|
462
470
|
local_env.update(data)
|
|
463
|
-
x = DshellInterpreteur(code, interaction, debug=False)
|
|
471
|
+
x = DshellInterpreteur(code, interaction.message, debug=False)
|
|
464
472
|
x.env.update(local_env)
|
|
465
473
|
await x.execute()
|
|
466
474
|
|
|
@@ -10,7 +10,7 @@ Dshell/DISCORD_COMMANDS/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
|
|
|
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=E2NA5SpnbdB-o1MOoP5xUX4rNULLQPIiHk41KCD8XpM,26355
|
|
14
14
|
Dshell/_DshellParser/__init__.py,sha256=ONDfhZMvClqP_6tE8SLjp-cf3pXL-auQYnfYRrHZxC4,56
|
|
15
15
|
Dshell/_DshellParser/ast_nodes.py,sha256=CXUG0rIJNh4jzMCgCcRqmQwU0WQoESQ-5FkuVtZZndM,17717
|
|
16
16
|
Dshell/_DshellParser/dshell_parser.py,sha256=73eKwY7iBzBtL6n2IxJcvtSz0xkfE5y1qEffZ2YfXXY,16913
|
|
@@ -18,8 +18,8 @@ Dshell/_DshellTokenizer/__init__.py,sha256=LIQSRhDx2B9pmPx5ADMwwD0Xr9ybneVLhHH8q
|
|
|
18
18
|
Dshell/_DshellTokenizer/dshell_keywords.py,sha256=HtrOQiND_TdM2pdNNAdjBZK2Lhzm2_9umY2dmKfFMTQ,5675
|
|
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.13.
|
|
22
|
-
dshellinterpreter-0.2.13.
|
|
23
|
-
dshellinterpreter-0.2.13.
|
|
24
|
-
dshellinterpreter-0.2.13.
|
|
25
|
-
dshellinterpreter-0.2.13.
|
|
21
|
+
dshellinterpreter-0.2.13.5.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
|
|
22
|
+
dshellinterpreter-0.2.13.5.dist-info/METADATA,sha256=5U40G2EGuFk9mnKAQ9Cd4bfT-MyP2JvX2UEu_g4cSsQ,1151
|
|
23
|
+
dshellinterpreter-0.2.13.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
24
|
+
dshellinterpreter-0.2.13.5.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
|
|
25
|
+
dshellinterpreter-0.2.13.5.dist-info/RECORD,,
|
|
File without changes
|
{dshellinterpreter-0.2.13.4.dist-info → dshellinterpreter-0.2.13.5.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|