dshellInterpreter 0.2.14.2__tar.gz → 0.2.14.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.14.2 → dshellinterpreter-0.2.14.4}/Dshell/_DshellInterpreteur/dshell_interpreter.py +8 -10
- {dshellinterpreter-0.2.14.2/dshellInterpreter.egg-info → dshellinterpreter-0.2.14.4}/PKG-INFO +1 -1
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4/dshellInterpreter.egg-info}/PKG-INFO +1 -1
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/setup.py +1 -1
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/DISCORD_COMMANDS/__init__.py +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/DISCORD_COMMANDS/dshell_channel.py +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/DISCORD_COMMANDS/dshell_interaction.py +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/DISCORD_COMMANDS/dshell_member.py +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/DISCORD_COMMANDS/dshell_message.py +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/DISCORD_COMMANDS/dshell_pastbin.py +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/DISCORD_COMMANDS/dshell_role.py +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/DISCORD_COMMANDS/utils/__init__.py +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/DISCORD_COMMANDS/utils/utils_message.py +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/DISCORD_COMMANDS/utils/utils_thread.py +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/_DshellInterpreteur/__init__.py +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/_DshellParser/__init__.py +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/_DshellParser/ast_nodes.py +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/_DshellParser/dshell_parser.py +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/_DshellTokenizer/__init__.py +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/_DshellTokenizer/dshell_keywords.py +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/_DshellTokenizer/dshell_token_type.py +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/_DshellTokenizer/dshell_tokenizer.py +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/__init__.py +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/_utils.py +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/LICENSE +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/README.md +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/dshellInterpreter.egg-info/SOURCES.txt +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/dshellInterpreter.egg-info/dependency_links.txt +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/dshellInterpreter.egg-info/requires.txt +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/dshellInterpreter.egg-info/top_level.txt +0 -0
- {dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/setup.cfg +0 -0
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
from asyncio import sleep
|
|
2
2
|
from re import findall
|
|
3
|
-
from typing import TypeVar, Union, Any, Optional, Callable
|
|
4
|
-
from random import choice
|
|
5
|
-
from string import ascii_letters, digits
|
|
3
|
+
from typing import TypeVar, Union, Any, Optional, Callable
|
|
6
4
|
from copy import deepcopy
|
|
7
5
|
from pycordViews import EasyModifiedViews
|
|
8
6
|
from pycordViews.views.errors import CustomIDNotFound
|
|
@@ -453,7 +451,7 @@ def build_colour(color: Union[int, ListNode]) -> Union[Colour, int]:
|
|
|
453
451
|
else:
|
|
454
452
|
raise TypeError(f"Color must be an integer or a ListNode, not {type(color)} !")
|
|
455
453
|
|
|
456
|
-
def build_ui_parameters(ui_node: UiNode, interpreter: DshellInterpreteur)
|
|
454
|
+
def build_ui_parameters(ui_node: UiNode, interpreter: DshellInterpreteur):
|
|
457
455
|
"""
|
|
458
456
|
Builds the parameters for a UI component from the UiNode.
|
|
459
457
|
Can accept buttons and select menus.
|
|
@@ -512,12 +510,12 @@ def rebuild_ui(ui_node : UiNode, view: EasyModifiedViews, interpreter: DshellInt
|
|
|
512
510
|
except CustomIDNotFound:
|
|
513
511
|
raise ValueError(f"Button with custom_id '{args_button['custom_id']}' not found in the view !")
|
|
514
512
|
|
|
515
|
-
ui.
|
|
516
|
-
ui.
|
|
517
|
-
ui.
|
|
518
|
-
ui.
|
|
519
|
-
ui.
|
|
520
|
-
ui.
|
|
513
|
+
ui.label = args_button.get('label', ui.label)
|
|
514
|
+
ui.style = args_button.get('style', ui.style)
|
|
515
|
+
ui.emoji = args_button.get('emoji', ui.emoji)
|
|
516
|
+
ui.disabled = args_button.get('disabled', ui.disabled)
|
|
517
|
+
ui.url = args_button.get('url', ui.url)
|
|
518
|
+
ui.row = args_button.get('row', ui.row)
|
|
521
519
|
new_code = code if code is not None else view.get_callable_data(args_button['custom_id'])['code']
|
|
522
520
|
view.set_callable(args_button['custom_id'], _callable=ui_button_callback, data={'code': args_button.get('code', code)})
|
|
523
521
|
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="dshellInterpreter",
|
|
8
|
-
version="0.2.14.
|
|
8
|
+
version="0.2.14.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.14.2 → dshellinterpreter-0.2.14.4}/Dshell/DISCORD_COMMANDS/__init__.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/DISCORD_COMMANDS/dshell_channel.py
RENAMED
|
File without changes
|
|
File without changes
|
{dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/DISCORD_COMMANDS/dshell_member.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/DISCORD_COMMANDS/dshell_message.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/DISCORD_COMMANDS/dshell_pastbin.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/DISCORD_COMMANDS/dshell_role.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/DISCORD_COMMANDS/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/_DshellInterpreteur/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/_DshellParser/dshell_parser.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/Dshell/_DshellTokenizer/__init__.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.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.14.2 → dshellinterpreter-0.2.14.4}/dshellInterpreter.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/dshellInterpreter.egg-info/requires.txt
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.14.2 → dshellinterpreter-0.2.14.4}/dshellInterpreter.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|