dshellInterpreter 0.2.19.5__py3-none-any.whl → 0.2.20.0__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/DISCORD_COMMANDS/utils/utils_message.py +0 -2
- Dshell/_DshellTokenizer/dshell_keywords.py +2 -0
- {dshellinterpreter-0.2.19.5.dist-info → dshellinterpreter-0.2.20.0.dist-info}/METADATA +1 -1
- {dshellinterpreter-0.2.19.5.dist-info → dshellinterpreter-0.2.20.0.dist-info}/RECORD +7 -7
- {dshellinterpreter-0.2.19.5.dist-info → dshellinterpreter-0.2.20.0.dist-info}/WHEEL +0 -0
- {dshellinterpreter-0.2.19.5.dist-info → dshellinterpreter-0.2.20.0.dist-info}/licenses/LICENSE +0 -0
- {dshellinterpreter-0.2.19.5.dist-info → dshellinterpreter-0.2.20.0.dist-info}/top_level.txt +0 -0
|
@@ -96,7 +96,5 @@ async def utils_get_author_id_message(ctx: Message, message: Optional[int] = Non
|
|
|
96
96
|
target_message = await target_message.fetch()
|
|
97
97
|
except:
|
|
98
98
|
raise Exception(f"[message_author] Author ID message to get is not found !")
|
|
99
|
-
else:
|
|
100
|
-
target_message = ctx
|
|
101
99
|
|
|
102
100
|
return target_message.author.id
|
|
@@ -20,6 +20,7 @@ from ..DISCORD_COMMANDS.utils.utils_global import *
|
|
|
20
20
|
from ..DISCORD_COMMANDS.utils.utils_list import *
|
|
21
21
|
from ..DISCORD_COMMANDS.utils.utils_member import *
|
|
22
22
|
from ..DISCORD_COMMANDS.utils.utils_string import *
|
|
23
|
+
from ..DISCORD_COMMANDS.utils.utils_message import *
|
|
23
24
|
|
|
24
25
|
dshell_keyword: set[str] = {
|
|
25
26
|
'if', 'else', 'elif', 'loop', '#end', 'var', '#loop', '#if', 'sleep', 'param', '#param'
|
|
@@ -71,6 +72,7 @@ dshell_commands: dict[str, Callable] = {
|
|
|
71
72
|
'name': utils_get_name, # get the name from id (channel, role, member)
|
|
72
73
|
'id': utils_get_id, # get the id from name (channel, role, member)
|
|
73
74
|
'roles': utils_get_roles, # get all roles of a member
|
|
75
|
+
'author_id': utils_get_author_id_message, # get the author id from a message
|
|
74
76
|
|
|
75
77
|
## Member utils
|
|
76
78
|
'has_perms': utils_has_permissions, # check if a member has the specified permissions
|
|
@@ -11,7 +11,7 @@ Dshell/DISCORD_COMMANDS/utils/__init__.py,sha256=X5F-fFCXD8Y7sia0b2q-7Fr1-MJj-aL
|
|
|
11
11
|
Dshell/DISCORD_COMMANDS/utils/utils_global.py,sha256=G_gH9iF6roT-0QR2FUZj6_P1ADr06JrxZgELOy9yIP8,4768
|
|
12
12
|
Dshell/DISCORD_COMMANDS/utils/utils_list.py,sha256=zqImMWvD-1UnbPP1TZewnvZpq7qs1sOTT1YhbJ5I8h8,3160
|
|
13
13
|
Dshell/DISCORD_COMMANDS/utils/utils_member.py,sha256=1EoHooxwijc7AFJGnuae3ccjQk0x69MELtZ5ES5abLY,1165
|
|
14
|
-
Dshell/DISCORD_COMMANDS/utils/utils_message.py,sha256=
|
|
14
|
+
Dshell/DISCORD_COMMANDS/utils/utils_message.py,sha256=Gem1o-hyJq2YJer76M2o9TPl5rP1AMxNXTJeDnJSHMM,4265
|
|
15
15
|
Dshell/DISCORD_COMMANDS/utils/utils_permissions.py,sha256=wBtdKRLkNSgKgfu7tURdiehdcO-npXUvnVx9D82HudM,3593
|
|
16
16
|
Dshell/DISCORD_COMMANDS/utils/utils_string.py,sha256=2LvJG_PR_VkPdnsw0vKNTwhEQGNog-3gFd_rZIUpGKc,4709
|
|
17
17
|
Dshell/DISCORD_COMMANDS/utils/utils_thread.py,sha256=tVl4msEwrWHY-0AytI6eY3JSs-eIFUigDSJfK9mT1ww,1457
|
|
@@ -23,11 +23,11 @@ Dshell/_DshellParser/__init__.py,sha256=ONDfhZMvClqP_6tE8SLjp-cf3pXL-auQYnfYRrHZ
|
|
|
23
23
|
Dshell/_DshellParser/ast_nodes.py,sha256=vsY_-uGqbB03Bi556QnRM98kx6oOeJFMe9TaAX2Zcz0,19627
|
|
24
24
|
Dshell/_DshellParser/dshell_parser.py,sha256=sJdrzJV7Voi_OKx3IazdQ9Yg_5Sk6jz2y02TmsV7T88,19080
|
|
25
25
|
Dshell/_DshellTokenizer/__init__.py,sha256=LIQSRhDx2B9pmPx5ADMwwD0Xr9ybneVLhHH8qrJWw_s,172
|
|
26
|
-
Dshell/_DshellTokenizer/dshell_keywords.py,sha256=
|
|
26
|
+
Dshell/_DshellTokenizer/dshell_keywords.py,sha256=z7vAXqIZI3DQX5OoYXFc_JsVtb_TwMZrPe9F_CRRJBc,6402
|
|
27
27
|
Dshell/_DshellTokenizer/dshell_token_type.py,sha256=bkug7eBKjYofkOGmwzPnAH9rQlU14cO0PelZbT0kGoQ,1544
|
|
28
28
|
Dshell/_DshellTokenizer/dshell_tokenizer.py,sha256=aSXdzEyhqoYYLpMLsLwRpeQPp84PA1F5cjm9O1EYBQs,7350
|
|
29
|
-
dshellinterpreter-0.2.
|
|
30
|
-
dshellinterpreter-0.2.
|
|
31
|
-
dshellinterpreter-0.2.
|
|
32
|
-
dshellinterpreter-0.2.
|
|
33
|
-
dshellinterpreter-0.2.
|
|
29
|
+
dshellinterpreter-0.2.20.0.dist-info/licenses/LICENSE,sha256=lNgcw1_xb7QENAQi3uHGymaFtbs0RV-ihiCd7AoLQjA,1082
|
|
30
|
+
dshellinterpreter-0.2.20.0.dist-info/METADATA,sha256=uYyJOyttJCiN5jhuEA2kzfGJN1WZLqt2XJUVSk2Us50,1151
|
|
31
|
+
dshellinterpreter-0.2.20.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
32
|
+
dshellinterpreter-0.2.20.0.dist-info/top_level.txt,sha256=B4CMhtmchGwPQJLuqUy0GhRG-0cUGxKL4GqEbCiB_vE,7
|
|
33
|
+
dshellinterpreter-0.2.20.0.dist-info/RECORD,,
|
|
File without changes
|
{dshellinterpreter-0.2.19.5.dist-info → dshellinterpreter-0.2.20.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|