dshellInterpreter 0.1.19__tar.gz → 0.1.21__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.

Files changed (24) hide show
  1. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/Dshell/DISCORD_COMMANDS/dshell_channel.py +2 -2
  2. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/Dshell/DISCORD_COMMANDS/dshell_message.py +2 -2
  3. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/PKG-INFO +1 -1
  4. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/dshellInterpreter.egg-info/PKG-INFO +1 -1
  5. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/setup.py +1 -1
  6. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/Dshell/DISCORD_COMMANDS/__init__.py +0 -0
  7. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/Dshell/DISCORD_COMMANDS/dshell_member.py +0 -0
  8. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/Dshell/_DshellInterpreteur/__init__.py +0 -0
  9. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/Dshell/_DshellInterpreteur/dshell_interpreter.py +0 -0
  10. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/Dshell/_DshellParser/__init__.py +0 -0
  11. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/Dshell/_DshellParser/ast_nodes.py +0 -0
  12. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/Dshell/_DshellParser/dshell_parser.py +0 -0
  13. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/Dshell/_DshellTokenizer/__init__.py +0 -0
  14. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/Dshell/_DshellTokenizer/dshell_keywords.py +0 -0
  15. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/Dshell/_DshellTokenizer/dshell_token_type.py +0 -0
  16. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/Dshell/_DshellTokenizer/dshell_tokenizer.py +0 -0
  17. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/Dshell/__init__.py +0 -0
  18. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/LICENSE +0 -0
  19. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/README.md +0 -0
  20. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/dshellInterpreter.egg-info/SOURCES.txt +0 -0
  21. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/dshellInterpreter.egg-info/dependency_links.txt +0 -0
  22. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/dshellInterpreter.egg-info/requires.txt +0 -0
  23. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/dshellInterpreter.egg-info/top_level.txt +0 -0
  24. {dshellinterpreter-0.1.19 → dshellinterpreter-0.1.21}/setup.cfg +0 -0
@@ -111,7 +111,7 @@ async def dshell_edit_text_channel(ctx: Message,
111
111
  if channel_to_edit is None:
112
112
  raise Exception(f"Channel {channel} not found !")
113
113
 
114
- await channel_to_edit.edit(name=name,
114
+ await channel_to_edit.edit(name=name if name is not None else channel_to_edit.name,
115
115
  position=position if position is not MISSING else channel_to_edit.position,
116
116
  slowmode_delay=slowmode if slowmode is not MISSING else channel_to_edit.slowmode_delay,
117
117
  topic=topic if topic is not MISSING else channel_to_edit.topic,
@@ -137,7 +137,7 @@ async def dshell_edit_voice_channel(ctx: Message,
137
137
  if channel_to_edit is None:
138
138
  raise Exception(f"Channel {channel} not found !")
139
139
 
140
- await channel_to_edit.edit(name=name,
140
+ await channel_to_edit.edit(name=name if name is not None else channel_to_edit.name,
141
141
  position=position if position is not MISSING else channel_to_edit.position,
142
142
  bitrate=bitrate if bitrate is not MISSING else channel_to_edit.bitrate,
143
143
  overwrites=permission if permission is not MISSING else channel_to_edit.overwrites,
@@ -106,12 +106,12 @@ async def dshell_research_regex_message(ctx: Message, regex, channel=None):
106
106
 
107
107
  return messages
108
108
 
109
- async def dshell_research_regex_in_content(ctx: Message, regex, content):
109
+ async def dshell_research_regex_in_content(ctx: Message, regex, content=None):
110
110
  """
111
111
  Searches for a regex in a specific message content
112
112
  """
113
113
 
114
- if not search(regex, content):
114
+ if not search(regex, content if content is not None else ctx.content):
115
115
  return False
116
116
 
117
117
  return True
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dshellInterpreter
3
- Version: 0.1.19
3
+ Version: 0.1.21
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.19
3
+ Version: 0.1.21
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.19",
8
+ version="0.1.21",
9
9
  author="Chronos",
10
10
  author_email="vagabonwalybi@gmail.com",
11
11
  description="A Discord bot interpreter for creating custom commands and automations.",