dshellInterpreter 0.1.16__py3-none-any.whl → 0.1.18__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.

@@ -123,7 +123,7 @@ async def dshell_add_reactions(ctx: Message, reactions, message=None):
123
123
  message = ctx if message is None else ctx.channel.get_partial_message(message) # builds a reference to the message (even if it doesn't exist)
124
124
 
125
125
  if isinstance(reactions, str):
126
- reactions = [reactions]
126
+ reactions = (reactions,)
127
127
 
128
128
  for reaction in reactions:
129
129
  await message.add_reaction(reaction)
@@ -28,8 +28,7 @@ from .ast_nodes import (ASTNode,
28
28
  from .._DshellTokenizer.dshell_token_type import DshellTokenType as DTT
29
29
  from .._DshellTokenizer.dshell_token_type import Token
30
30
 
31
- if TYPE_CHECKING:
32
- from .._DshellTokenizer import dshell_operators
31
+ from .._DshellTokenizer import dshell_operators
33
32
 
34
33
 
35
34
  def parse(token_lines: list[list[Token]], start_node: ASTNode) -> tuple[list[ASTNode], int]:
@@ -43,8 +43,8 @@ dshell_commands: dict[str, Callable] = {
43
43
  "ec": dshell_edit_text_channel, # edit text channel
44
44
  "evc": dshell_edit_voice_channel, # edit voice channel
45
45
 
46
- "arr": dshell_add_reactions, # add reactions to a message
47
- "rrr": dshell_remove_reactions, # remove reactions from a message
46
+ "amr": dshell_add_reactions, # add reactions to a message
47
+ "rmr": dshell_remove_reactions, # remove reactions from a message
48
48
 
49
49
  }
50
50
 
@@ -17,8 +17,8 @@ table_regex: dict[DTT, Pattern] = {
17
17
  DTT.COMMENT: compile(r"::(.*)"),
18
18
  # DTT.DICT: compile(r"\{(.*?)\}"),
19
19
  DTT.CALL_ARGS: compile(r"\((.*?)\)"),
20
- DTT.STR: compile(r"\"(.*?)\"", flags=DOTALL),
21
20
  DTT.LIST: compile(r"\[(.*?)\]"),
21
+ DTT.STR: compile(r"\"(.*?)\"", flags=DOTALL),
22
22
  DTT.MENTION: compile(r'<(?:@!?|@&|#)([0-9]+)>'),
23
23
  DTT.KEYWORD: compile(rf"(?<!\w)(#?{'|'.join(dshell_keyword)})(?!\w)"),
24
24
  DTT.DISCORD_KEYWORD: compile(rf"(?<!\w|-)(#?{'|'.join(dshell_discord_keyword)})(?!\w|-)"),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dshellInterpreter
3
- Version: 0.1.16
3
+ Version: 0.1.18
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
@@ -2,18 +2,18 @@ Dshell/__init__.py,sha256=UPvXnewe_8FX9aoevMA78UN1k8AY-u8LTY3vEVxaDxw,72
2
2
  Dshell/DISCORD_COMMANDS/__init__.py,sha256=unbZE4sxFCbUQ4Qptr1BhWu-nwhvI2oRzcDLtRmX6Ug,92
3
3
  Dshell/DISCORD_COMMANDS/dshell_channel.py,sha256=3tOVZhfFSie_Kjv8HhgsPfzWQuppLbZ4elmf04KfvrM,5865
4
4
  Dshell/DISCORD_COMMANDS/dshell_member.py,sha256=4cmpcu9RGHVUOGcF9pSnnxh7kEJQWAel4BBQ6Vicvbs,3126
5
- Dshell/DISCORD_COMMANDS/dshell_message.py,sha256=Q0LjP_4f-VX31Q0T2oix387qAJ0CQGawqCbMGCiUbM8,4381
5
+ Dshell/DISCORD_COMMANDS/dshell_message.py,sha256=nleLKY12nKzu7CNBa4PBSy9-sz57dE1EgQ8-g10jC5A,4382
6
6
  Dshell/_DshellInterpreteur/__init__.py,sha256=xy5-J-R3YmY99JF3NBHTRRLsComFxpjnCA5xacISctU,35
7
7
  Dshell/_DshellInterpreteur/dshell_interpreter.py,sha256=viZBYDF7rw1Juasu-B4Fc7Kvdm4j_7SGhOeR_DZpL00,19485
8
8
  Dshell/_DshellParser/__init__.py,sha256=ONDfhZMvClqP_6tE8SLjp-cf3pXL-auQYnfYRrHZxC4,56
9
9
  Dshell/_DshellParser/ast_nodes.py,sha256=-zFmSeb6FnvcXd2gB3koy93apVJ-PiCY8PTUFj-_bG8,15307
10
- Dshell/_DshellParser/dshell_parser.py,sha256=aCsIbPlQeQQAAfMr2SCnjRODDLZXtea8os4cA4PW7m4,15548
10
+ Dshell/_DshellParser/dshell_parser.py,sha256=jCnwxY_J-_u1W_tEotQznp4_Y0aeAH4pTcPl6_Fx9f8,15525
11
11
  Dshell/_DshellTokenizer/__init__.py,sha256=LIQSRhDx2B9pmPx5ADMwwD0Xr9ybneVLhHH8qrJWw_s,172
12
- Dshell/_DshellTokenizer/dshell_keywords.py,sha256=Hk8rdW62Lb246lNZ8ETgYl4sOuXiCKla9f3Lx5N5MuQ,4253
12
+ Dshell/_DshellTokenizer/dshell_keywords.py,sha256=10VctszIRg8AX5Nsr7kwRIjdwzUgTfrrJYbD7QfYR5s,4253
13
13
  Dshell/_DshellTokenizer/dshell_token_type.py,sha256=Q8Jpil9S3-Tin1sXEHW7cnNdDdUh7Fiv8_lki0OWC0E,1443
14
- Dshell/_DshellTokenizer/dshell_tokenizer.py,sha256=DSGiSHj9jLqP7RkC-8WFRqFvitJ7P4b7p0CJn4ek7hE,5831
15
- dshellinterpreter-0.1.16.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
16
- dshellinterpreter-0.1.16.dist-info/METADATA,sha256=m-rvSmVUOMrGTwAK5PrZXZwzpeEbHlLniu-UsxhkTv0,1096
17
- dshellinterpreter-0.1.16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
- dshellinterpreter-0.1.16.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
19
- dshellinterpreter-0.1.16.dist-info/RECORD,,
14
+ Dshell/_DshellTokenizer/dshell_tokenizer.py,sha256=E5dCrpbLVgME1moz2zC_X4w4HvV6PrYbK5_pwD3gYzw,5831
15
+ dshellinterpreter-0.1.18.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
16
+ dshellinterpreter-0.1.18.dist-info/METADATA,sha256=liwRiFo4gIA4kduQvjz3QlpDypsJ0rVlUz-NW0aIeVM,1096
17
+ dshellinterpreter-0.1.18.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
+ dshellinterpreter-0.1.18.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
19
+ dshellinterpreter-0.1.18.dist-info/RECORD,,