dshellInterpreter 0.2.4.3__tar.gz → 0.2.4.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.

Files changed (27) hide show
  1. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/Dshell/DISCORD_COMMANDS/dshell_role.py +6 -5
  2. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/Dshell/__init__.py +1 -0
  3. dshellinterpreter-0.2.4.4/Dshell/_utils.py +1 -0
  4. {dshellinterpreter-0.2.4.3/dshellInterpreter.egg-info → dshellinterpreter-0.2.4.4}/PKG-INFO +1 -1
  5. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4/dshellInterpreter.egg-info}/PKG-INFO +1 -1
  6. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/dshellInterpreter.egg-info/SOURCES.txt +1 -0
  7. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/setup.py +1 -1
  8. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/Dshell/DISCORD_COMMANDS/__init__.py +0 -0
  9. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/Dshell/DISCORD_COMMANDS/dshell_channel.py +0 -0
  10. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/Dshell/DISCORD_COMMANDS/dshell_member.py +0 -0
  11. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/Dshell/DISCORD_COMMANDS/dshell_message.py +0 -0
  12. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/Dshell/DISCORD_COMMANDS/dshell_pastbin.py +0 -0
  13. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/Dshell/_DshellInterpreteur/__init__.py +0 -0
  14. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/Dshell/_DshellInterpreteur/dshell_interpreter.py +0 -0
  15. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/Dshell/_DshellParser/__init__.py +0 -0
  16. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/Dshell/_DshellParser/ast_nodes.py +0 -0
  17. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/Dshell/_DshellParser/dshell_parser.py +0 -0
  18. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/Dshell/_DshellTokenizer/__init__.py +0 -0
  19. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/Dshell/_DshellTokenizer/dshell_keywords.py +0 -0
  20. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/Dshell/_DshellTokenizer/dshell_token_type.py +0 -0
  21. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/Dshell/_DshellTokenizer/dshell_tokenizer.py +0 -0
  22. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/LICENSE +0 -0
  23. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/README.md +0 -0
  24. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/dshellInterpreter.egg-info/dependency_links.txt +0 -0
  25. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/dshellInterpreter.egg-info/requires.txt +0 -0
  26. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/dshellInterpreter.egg-info/top_level.txt +0 -0
  27. {dshellinterpreter-0.2.4.3 → dshellinterpreter-0.2.4.4}/setup.cfg +0 -0
@@ -1,5 +1,6 @@
1
1
  from discord import MISSING, Message, PermissionOverwrite
2
2
  from discord.utils import _MissingSentinel
3
+ from .._utils import NoneType
3
4
 
4
5
  __all__ = [
5
6
  'dshell_create_role',
@@ -88,10 +89,10 @@ async def dshell_edit_role(ctx: Message,
88
89
 
89
90
  role_to_edit = ctx.guild.get_role(role)
90
91
 
91
- if not isinstance(name, (str, None)):
92
+ if not isinstance(name, (str, NoneType)):
92
93
  raise Exception(f"Name must be a string, not {type(name)} !")
93
94
 
94
- if not isinstance(permissions, (dict, None)):
95
+ if not isinstance(permissions, (dict, NoneType)):
95
96
  raise Exception(f"Permissions must be a PermissionNode, not {type(permissions)} !")
96
97
 
97
98
  if isinstance(permissions, dict):
@@ -104,13 +105,13 @@ async def dshell_edit_role(ctx: Message,
104
105
  if color is not None:
105
106
  color = build_colour(color)
106
107
 
107
- if not isinstance(hoist, (bool, None)):
108
+ if not isinstance(hoist, (bool, NoneType)):
108
109
  raise Exception(f"Hoist must be a boolean, not {type(permissions)} !")
109
110
 
110
- if not isinstance(mentionable, (bool, None)):
111
+ if not isinstance(mentionable, (bool, NoneType)):
111
112
  raise Exception(f"Mentionable must be a boolean, not {type(permissions)} !")
112
113
 
113
- if not isinstance(position, (int, None)):
114
+ if not isinstance(position, (int, NoneType)):
114
115
  raise Exception(f"Position must be an integer, not {type(permissions)} !")
115
116
 
116
117
  await role_to_edit.edit(name=name if name is not None else role_to_edit.name,
@@ -1 +1,2 @@
1
1
  from ._DshellInterpreteur.dshell_interpreter import DshellInterpreteur
2
+ from ._utils import *
@@ -0,0 +1 @@
1
+ NoneType = type(None)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dshellInterpreter
3
- Version: 0.2.4.3
3
+ Version: 0.2.4.4
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.2.4.3
3
+ Version: 0.2.4.4
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,6 +2,7 @@ LICENSE
2
2
  README.md
3
3
  setup.py
4
4
  Dshell/__init__.py
5
+ Dshell/_utils.py
5
6
  Dshell/DISCORD_COMMANDS/__init__.py
6
7
  Dshell/DISCORD_COMMANDS/dshell_channel.py
7
8
  Dshell/DISCORD_COMMANDS/dshell_member.py
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setup(
7
7
  name="dshellInterpreter",
8
- version="0.2.4.3",
8
+ version="0.2.4.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.",