dshellInterpreter 0.2.18.3__tar.gz → 0.2.18.4__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.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/utils/utils_string.py +4 -2
- {dshellinterpreter-0.2.18.3/dshellInterpreter.egg-info → dshellinterpreter-0.2.18.4}/PKG-INFO +1 -1
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4/dshellInterpreter.egg-info}/PKG-INFO +1 -1
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/setup.py +1 -1
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/__init__.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/dshell_channel.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/dshell_interaction.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/dshell_member.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/dshell_message.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/dshell_pastbin.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/dshell_role.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/utils/__init__.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/utils/utils_global.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/utils/utils_list.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/utils/utils_member.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/utils/utils_message.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/utils/utils_permissions.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/utils/utils_thread.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/_DshellInterpreteur/__init__.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/_DshellInterpreteur/dshell_interpreter.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/_DshellInterpreteur/errors.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/_DshellParser/__init__.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/_DshellParser/ast_nodes.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/_DshellParser/dshell_parser.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/_DshellTokenizer/__init__.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/_DshellTokenizer/dshell_keywords.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/_DshellTokenizer/dshell_token_type.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/_DshellTokenizer/dshell_tokenizer.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/__init__.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/_utils.py +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/LICENSE +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/README.md +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/dshellInterpreter.egg-info/SOURCES.txt +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/dshellInterpreter.egg-info/dependency_links.txt +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/dshellInterpreter.egg-info/requires.txt +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/dshellInterpreter.egg-info/top_level.txt +0 -0
- {dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/setup.cfg +0 -0
|
@@ -138,7 +138,7 @@ async def utils_regex_sub(ctx: Message, regex: str, replace: str, content: str =
|
|
|
138
138
|
|
|
139
139
|
return sub(regex, replace, content if content is not None else ctx.content)
|
|
140
140
|
|
|
141
|
-
async def utils_regex_search(ctx: Message, regex: str, content: str = None) ->
|
|
141
|
+
async def utils_regex_search(ctx: Message, regex: str, content: str = None) -> str:
|
|
142
142
|
"""
|
|
143
143
|
Search for a regex in a string.
|
|
144
144
|
:param regex:
|
|
@@ -152,4 +152,6 @@ async def utils_regex_search(ctx: Message, regex: str, content: str = None) -> b
|
|
|
152
152
|
if content is not None and not isinstance(content, str):
|
|
153
153
|
raise Exception(f"Content must be a string, not {type(content)}!")
|
|
154
154
|
|
|
155
|
-
|
|
155
|
+
result = search(regex, content if content is not None else ctx.content)
|
|
156
|
+
|
|
157
|
+
return result.group() if result else ''
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="dshellInterpreter",
|
|
8
|
-
version="0.2.18.
|
|
8
|
+
version="0.2.18.4",
|
|
9
9
|
author="Chronos",
|
|
10
10
|
author_email="vagabonwalybi@gmail.com",
|
|
11
11
|
description="A Discord bot interpreter for creating custom commands and automations.",
|
{dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/__init__.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/dshell_channel.py
RENAMED
|
File without changes
|
|
File without changes
|
{dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/dshell_member.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/dshell_message.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/dshell_pastbin.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/dshell_role.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/DISCORD_COMMANDS/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/_DshellInterpreteur/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/_DshellInterpreteur/errors.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/_DshellParser/dshell_parser.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/_DshellTokenizer/__init__.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/Dshell/_DshellTokenizer/dshell_keywords.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/dshellInterpreter.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/dshellInterpreter.egg-info/requires.txt
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.18.3 → dshellinterpreter-0.2.18.4}/dshellInterpreter.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|