dshellInterpreter 0.1.16__tar.gz → 0.1.18__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.
Potentially problematic release.
This version of dshellInterpreter might be problematic. Click here for more details.
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/Dshell/DISCORD_COMMANDS/dshell_message.py +1 -1
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/Dshell/_DshellParser/dshell_parser.py +1 -2
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/Dshell/_DshellTokenizer/dshell_keywords.py +2 -2
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/Dshell/_DshellTokenizer/dshell_tokenizer.py +1 -1
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/PKG-INFO +1 -1
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/README.md +3 -3
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/dshellInterpreter.egg-info/PKG-INFO +1 -1
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/setup.py +1 -1
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/Dshell/DISCORD_COMMANDS/__init__.py +0 -0
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/Dshell/DISCORD_COMMANDS/dshell_channel.py +0 -0
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/Dshell/DISCORD_COMMANDS/dshell_member.py +0 -0
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/Dshell/_DshellInterpreteur/__init__.py +0 -0
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/Dshell/_DshellInterpreteur/dshell_interpreter.py +0 -0
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/Dshell/_DshellParser/__init__.py +0 -0
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/Dshell/_DshellParser/ast_nodes.py +0 -0
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/Dshell/_DshellTokenizer/__init__.py +0 -0
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/Dshell/_DshellTokenizer/dshell_token_type.py +0 -0
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/Dshell/__init__.py +0 -0
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/LICENSE +0 -0
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/dshellInterpreter.egg-info/SOURCES.txt +0 -0
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/dshellInterpreter.egg-info/dependency_links.txt +0 -0
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/dshellInterpreter.egg-info/requires.txt +0 -0
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/dshellInterpreter.egg-info/top_level.txt +0 -0
- {dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/setup.cfg +0 -0
{dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/Dshell/DISCORD_COMMANDS/dshell_message.py
RENAMED
|
@@ -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 =
|
|
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
|
-
|
|
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]:
|
{dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/Dshell/_DshellTokenizer/dshell_keywords.py
RENAMED
|
@@ -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
|
-
"
|
|
47
|
-
"
|
|
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
|
|
{dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/Dshell/_DshellTokenizer/dshell_tokenizer.py
RENAMED
|
@@ -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,3 +1,3 @@
|
|
|
1
|
-
# Dshell_Interpreter
|
|
2
|
-
|
|
3
|
-
Python interpreter for Discord.
|
|
1
|
+
# Dshell_Interpreter
|
|
2
|
+
|
|
3
|
+
Python interpreter for Discord.
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="dshellInterpreter",
|
|
8
|
-
version="0.1.
|
|
8
|
+
version="0.1.18",
|
|
9
9
|
author="Chronos",
|
|
10
10
|
author_email="vagabonwalybi@gmail.com",
|
|
11
11
|
description="A Discord bot interpreter for creating custom commands and automations.",
|
|
File without changes
|
{dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/Dshell/DISCORD_COMMANDS/dshell_channel.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/Dshell/DISCORD_COMMANDS/dshell_member.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/Dshell/_DshellInterpreteur/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/Dshell/_DshellTokenizer/dshell_token_type.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/dshellInterpreter.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/dshellInterpreter.egg-info/requires.txt
RENAMED
|
File without changes
|
{dshellinterpreter-0.1.16 → dshellinterpreter-0.1.18}/dshellInterpreter.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|