dshellInterpreter 0.1.26__tar.gz → 0.2.1__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.
Files changed (24) hide show
  1. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/Dshell/DISCORD_COMMANDS/dshell_message.py +1 -1
  2. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/Dshell/_DshellInterpreteur/dshell_interpreter.py +4 -0
  3. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/Dshell/_DshellTokenizer/dshell_tokenizer.py +1 -1
  4. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/PKG-INFO +1 -1
  5. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/dshellInterpreter.egg-info/PKG-INFO +1 -1
  6. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/setup.py +1 -1
  7. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/Dshell/DISCORD_COMMANDS/__init__.py +0 -0
  8. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/Dshell/DISCORD_COMMANDS/dshell_channel.py +0 -0
  9. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/Dshell/DISCORD_COMMANDS/dshell_member.py +0 -0
  10. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/Dshell/_DshellInterpreteur/__init__.py +0 -0
  11. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/Dshell/_DshellParser/__init__.py +0 -0
  12. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/Dshell/_DshellParser/ast_nodes.py +0 -0
  13. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/Dshell/_DshellParser/dshell_parser.py +0 -0
  14. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/Dshell/_DshellTokenizer/__init__.py +0 -0
  15. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/Dshell/_DshellTokenizer/dshell_keywords.py +0 -0
  16. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/Dshell/_DshellTokenizer/dshell_token_type.py +0 -0
  17. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/Dshell/__init__.py +0 -0
  18. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/LICENSE +0 -0
  19. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/README.md +0 -0
  20. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/dshellInterpreter.egg-info/SOURCES.txt +0 -0
  21. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/dshellInterpreter.egg-info/dependency_links.txt +0 -0
  22. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/dshellInterpreter.egg-info/requires.txt +0 -0
  23. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/dshellInterpreter.egg-info/top_level.txt +0 -0
  24. {dshellinterpreter-0.1.26 → dshellinterpreter-0.2.1}/setup.cfg +0 -0
@@ -52,7 +52,7 @@ async def dshell_delete_message(ctx: Message, message=None, reason=None, delay=0
52
52
  if delay > 3600:
53
53
  raise Exception(f'The message deletion delay is too long! ({delay} seconds)')
54
54
 
55
- #await delete_message.delete(delay=delay, reason=reason)
55
+ await delete_message.delete(delay=delay, reason=reason)
56
56
 
57
57
 
58
58
  async def dshell_purge_message(ctx: Message, message_number, channel=None, reason=None):
@@ -184,11 +184,15 @@ def get_params(node: ParamNode, interpreter: DshellInterpreteur) -> dict[str, An
184
184
  if len(gived_variables) > 0:
185
185
  for key in englobe_args.keys():
186
186
  regrouped_args[key] = ' '.join([str(i) for i in gived_variables])
187
+ del englobe_args[key]
188
+ break
187
189
 
188
190
  for key, englobe_gived_key, englobe_gived_value in zip(englobe_args.keys(), englobe_gived_variables.keys(), englobe_gived_variables.values()):
189
191
  if key == englobe_gived_key:
190
192
  regrouped_args[key] = englobe_gived_value
191
193
 
194
+ regrouped_args.update(englobe_args) # add the englobe args to the regrouped args
195
+
192
196
  for key, value in env_give_variables.items():
193
197
  if key in regrouped_args:
194
198
  regrouped_args[key] = value # update the regrouped args with the env variables
@@ -15,7 +15,7 @@ MASK_CHARACTER = '§'
15
15
 
16
16
  table_regex: dict[DTT, Pattern] = {
17
17
  DTT.COMMENT: compile(r"::(.*?)"),
18
- DTT.ENGLOBE_SEPARATOR: compile(rf"--\*\w+\s*(.*)"),
18
+ DTT.ENGLOBE_SEPARATOR: compile(rf"--\*\w+\s*(.*?)\s*(?=--|$)"),
19
19
  DTT.STR: compile(r'"(.*?)"', flags=DOTALL),
20
20
  DTT.LIST: compile(r"\[(.*?)\]"),
21
21
  DTT.CALL_ARGS: compile(r"\((.*?)\)"),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dshellInterpreter
3
- Version: 0.1.26
3
+ Version: 0.2.1
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dshellInterpreter
3
- Version: 0.1.26
3
+ Version: 0.2.1
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
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setup(
7
7
  name="dshellInterpreter",
8
- version="0.1.26",
8
+ version="0.2.1",
9
9
  author="Chronos",
10
10
  author_email="vagabonwalybi@gmail.com",
11
11
  description="A Discord bot interpreter for creating custom commands and automations.",