dshellInterpreter 0.1.7__tar.gz → 0.1.8__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 (23) hide show
  1. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8}/Dshell/_DshellInterpreteur/dshell_interpreter.py +3 -6
  2. {dshellinterpreter-0.1.7/dshellInterpreter.egg-info → dshellinterpreter-0.1.8}/PKG-INFO +1 -1
  3. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8/dshellInterpreter.egg-info}/PKG-INFO +1 -1
  4. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8}/setup.py +1 -1
  5. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8}/Dshell/DISCORD_COMMANDS/__init__.py +0 -0
  6. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8}/Dshell/DISCORD_COMMANDS/dshell_channel.py +0 -0
  7. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8}/Dshell/DISCORD_COMMANDS/dshell_message.py +0 -0
  8. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8}/Dshell/_DshellInterpreteur/__init__.py +0 -0
  9. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8}/Dshell/_DshellParser/__init__.py +0 -0
  10. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8}/Dshell/_DshellParser/ast_nodes.py +0 -0
  11. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8}/Dshell/_DshellParser/dshell_parser.py +0 -0
  12. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8}/Dshell/_DshellTokenizer/__init__.py +0 -0
  13. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8}/Dshell/_DshellTokenizer/dshell_keywords.py +0 -0
  14. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8}/Dshell/_DshellTokenizer/dshell_token_type.py +0 -0
  15. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8}/Dshell/_DshellTokenizer/dshell_tokenizer.py +0 -0
  16. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8}/Dshell/__init__.py +0 -0
  17. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8}/LICENSE +0 -0
  18. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8}/README.md +0 -0
  19. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8}/dshellInterpreter.egg-info/SOURCES.txt +0 -0
  20. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8}/dshellInterpreter.egg-info/dependency_links.txt +0 -0
  21. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8}/dshellInterpreter.egg-info/requires.txt +0 -0
  22. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8}/dshellInterpreter.egg-info/top_level.txt +0 -0
  23. {dshellinterpreter-0.1.7 → dshellinterpreter-0.1.8}/setup.cfg +0 -0
@@ -281,10 +281,7 @@ class DshellIterator:
281
281
  """
282
282
 
283
283
  def __init__(self, data):
284
- if isinstance(data, ListNode):
285
- self.data = data
286
- else:
287
- self.data = data if isinstance(data, (str, list)) else range(int(data))
284
+ self.data = data if isinstance(data, (str, list, ListNode)) else range(int(data))
288
285
  self.current = 0
289
286
 
290
287
  def __iter__(self):
@@ -376,7 +373,7 @@ class DshellPermissions:
376
373
  target_keys = self.target.keys()
377
374
 
378
375
  if 'members' in target_keys:
379
- for member_id in self.target['members']:
376
+ for member_id in DshellIterator(self.target['members']):
380
377
  member = self.get_member(guild, member_id)
381
378
  permissions[member] = PermissionOverwrite.from_pair(
382
379
  allow=Permissions(permissions=self.target.get('allow', 0)),
@@ -384,7 +381,7 @@ class DshellPermissions:
384
381
  )
385
382
 
386
383
  elif 'roles' in target_keys:
387
- for role_id in self.target['roles']:
384
+ for role_id in DshellIterator(self.target['roles']):
388
385
  role = self.get_role(guild, role_id)
389
386
  permissions[role] = PermissionOverwrite.from_pair(
390
387
  allow=Permissions(permissions=self.target.get('allow', 0)),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dshellInterpreter
3
- Version: 0.1.7
3
+ Version: 0.1.8
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.7
3
+ Version: 0.1.8
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.7",
8
+ version="0.1.8",
9
9
  author="Chronos",
10
10
  author_email="vagabonwalybi@gmail.com",
11
11
  description="A Discord bot interpreter for creating custom commands and automations.",