dshellInterpreter 0.2.14.3__py3-none-any.whl → 0.2.14.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.

@@ -510,12 +510,12 @@ def rebuild_ui(ui_node : UiNode, view: EasyModifiedViews, interpreter: DshellInt
510
510
  except CustomIDNotFound:
511
511
  raise ValueError(f"Button with custom_id '{args_button['custom_id']}' not found in the view !")
512
512
 
513
- ui.view.label = args_button.get('label', ui.view.label)
514
- ui.view.style = args_button.get('style', ui.view.style)
515
- ui.view.emoji = args_button.get('emoji', ui.view.emoji)
516
- ui.view.disabled = args_button.get('disabled', ui.view.disabled)
517
- ui.view.url = args_button.get('url', ui.view.url)
518
- ui.view.row = args_button.get('row', ui.view.row)
513
+ ui.label = args_button.get('label', ui.label)
514
+ ui.style = args_button.get('style', ui.style)
515
+ ui.emoji = args_button.get('emoji', ui.emoji)
516
+ ui.disabled = args_button.get('disabled', ui.disabled)
517
+ ui.url = args_button.get('url', ui.url)
518
+ ui.row = args_button.get('row', ui.row)
519
519
  new_code = code if code is not None else view.get_callable_data(args_button['custom_id'])['code']
520
520
  view.set_callable(args_button['custom_id'], _callable=ui_button_callback, data={'code': args_button.get('code', code)})
521
521
 
@@ -51,8 +51,6 @@ def parse(token_lines: list[list[Token]], start_node: ASTNode) -> tuple[list[AST
51
51
  last_block = blocks[-1]
52
52
 
53
53
  if first_token_line.type == DTT.COMMAND: # si le token est une comande
54
- if len(tokens_by_line) <= 1:
55
- raise Exception(f'[{first_token_line.value.upper()}] take one or more arguments on line {first_token_line.position} !')
56
54
  body = tokens_by_line[1:] # on récupère ses arguments
57
55
  last_block.body.append(CommandNode(first_token_line.value,
58
56
  ArgsCommandNode(body))) # on ajoute la commande au body du dernier bloc
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dshellInterpreter
3
- Version: 0.2.14.3
3
+ Version: 0.2.14.5
4
4
  Summary: A Discord bot interpreter for creating custom commands and automations.
5
5
  Home-page: https://github.com/BOXERRMD/Dshell_Interpreter
6
6
  Author: Chronos
@@ -11,16 +11,16 @@ Dshell/DISCORD_COMMANDS/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
11
11
  Dshell/DISCORD_COMMANDS/utils/utils_message.py,sha256=cQvJ15f49ddOjybARwkJKNFe3ITYQciF-pZHERFPkr0,2964
12
12
  Dshell/DISCORD_COMMANDS/utils/utils_thread.py,sha256=tVl4msEwrWHY-0AytI6eY3JSs-eIFUigDSJfK9mT1ww,1457
13
13
  Dshell/_DshellInterpreteur/__init__.py,sha256=xy5-J-R3YmY99JF3NBHTRRLsComFxpjnCA5xacISctU,35
14
- Dshell/_DshellInterpreteur/dshell_interpreter.py,sha256=u89gS8ekT2PJ9ml5CN_T9XXjwNkU7Pw3VrqkMVBeCdQ,30902
14
+ Dshell/_DshellInterpreteur/dshell_interpreter.py,sha256=ndzWyXLnB8py_JgT1av5FyxlDmhisXrE0gFDN_WtVDA,30842
15
15
  Dshell/_DshellParser/__init__.py,sha256=ONDfhZMvClqP_6tE8SLjp-cf3pXL-auQYnfYRrHZxC4,56
16
16
  Dshell/_DshellParser/ast_nodes.py,sha256=fU6BVe6w78ZhYib7SGR7iAfTqWqS2kvwZ0d4wMxxOHk,18366
17
- Dshell/_DshellParser/dshell_parser.py,sha256=ZSSRheiNNR1zumxBK_tqlnUPjJ7ZIE6S-K5aJPp4TjM,21887
17
+ Dshell/_DshellParser/dshell_parser.py,sha256=YUFfBbFQ1ApOCyVhx-0nJ6S6W5MOBG6YabbkM43BKVw,21708
18
18
  Dshell/_DshellTokenizer/__init__.py,sha256=LIQSRhDx2B9pmPx5ADMwwD0Xr9ybneVLhHH8qrJWw_s,172
19
19
  Dshell/_DshellTokenizer/dshell_keywords.py,sha256=7oeSKLXCsPRpyU31skCerOUMzd2cdm-GwofpmgTPkD0,5961
20
20
  Dshell/_DshellTokenizer/dshell_token_type.py,sha256=gYIb2XN2YcgeRgmar_rBDS5CGmwfmxihu8mOW_d6lbE,1533
21
21
  Dshell/_DshellTokenizer/dshell_tokenizer.py,sha256=RrJA2XpcFH2vS6SnRIn5Own_uL5orIDvpq74t8xD3og,7350
22
- dshellinterpreter-0.2.14.3.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
23
- dshellinterpreter-0.2.14.3.dist-info/METADATA,sha256=nLlUFCpjuFHxsm5NGiDfTD3mNSW3oEdO2cSdnC_JrPQ,1151
24
- dshellinterpreter-0.2.14.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
25
- dshellinterpreter-0.2.14.3.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
26
- dshellinterpreter-0.2.14.3.dist-info/RECORD,,
22
+ dshellinterpreter-0.2.14.5.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
23
+ dshellinterpreter-0.2.14.5.dist-info/METADATA,sha256=kZcBqSvPrpgYkA3aaF4RvbgC20GHlVNSnfFNBuf-Y5o,1151
24
+ dshellinterpreter-0.2.14.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
25
+ dshellinterpreter-0.2.14.5.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
26
+ dshellinterpreter-0.2.14.5.dist-info/RECORD,,