dshellInterpreter 0.2.10.4__tar.gz → 0.2.10.6__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.10.4 → dshellinterpreter-0.2.10.6}/Dshell/DISCORD_COMMANDS/dshell_message.py +1 -1
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/_DshellInterpreteur/dshell_interpreter.py +4 -1
- {dshellinterpreter-0.2.10.4/dshellInterpreter.egg-info → dshellinterpreter-0.2.10.6}/PKG-INFO +1 -1
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6/dshellInterpreter.egg-info}/PKG-INFO +1 -1
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/setup.py +1 -1
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/DISCORD_COMMANDS/__init__.py +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/DISCORD_COMMANDS/dshell_channel.py +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/DISCORD_COMMANDS/dshell_member.py +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/DISCORD_COMMANDS/dshell_pastbin.py +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/DISCORD_COMMANDS/dshell_role.py +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/DISCORD_COMMANDS/utils/__init__.py +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/DISCORD_COMMANDS/utils/utils_message.py +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/DISCORD_COMMANDS/utils/utils_thread.py +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/_DshellInterpreteur/__init__.py +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/_DshellParser/__init__.py +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/_DshellParser/ast_nodes.py +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/_DshellParser/dshell_parser.py +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/_DshellTokenizer/__init__.py +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/_DshellTokenizer/dshell_keywords.py +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/_DshellTokenizer/dshell_token_type.py +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/_DshellTokenizer/dshell_tokenizer.py +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/__init__.py +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/_utils.py +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/LICENSE +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/README.md +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/dshellInterpreter.egg-info/SOURCES.txt +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/dshellInterpreter.egg-info/dependency_links.txt +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/dshellInterpreter.egg-info/requires.txt +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/dshellInterpreter.egg-info/top_level.txt +0 -0
- {dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/setup.cfg +0 -0
{dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/DISCORD_COMMANDS/dshell_message.py
RENAMED
|
@@ -25,6 +25,7 @@ async def dshell_send_message(ctx: Message, message=None, delete=None, channel=N
|
|
|
25
25
|
"""
|
|
26
26
|
Sends a message on Discord
|
|
27
27
|
"""
|
|
28
|
+
return -1
|
|
28
29
|
if delete is not None and not isinstance(delete, (int, float)):
|
|
29
30
|
raise Exception(f'Delete parameter must be a number (seconds) or None, not {type(delete)} !')
|
|
30
31
|
|
|
@@ -74,7 +75,6 @@ async def dshell_respond_message(ctx: Message, message=None, content: str = None
|
|
|
74
75
|
|
|
75
76
|
sended_message = await respond_message.reply(
|
|
76
77
|
content=str(content),
|
|
77
|
-
reference=respond_message,
|
|
78
78
|
mention_author=mention_author,
|
|
79
79
|
delete_after=delete,
|
|
80
80
|
embeds=embeds)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from asyncio import sleep
|
|
2
2
|
from re import findall
|
|
3
3
|
from typing import TypeVar, Union, Any, Optional, Callable
|
|
4
|
+
from copy import deepcopy
|
|
4
5
|
|
|
5
6
|
from discord import AutoShardedBot, Embed, Colour, PermissionOverwrite, Permissions, Guild, Member, Role, Message
|
|
6
7
|
from discord.abc import PrivateChannel
|
|
@@ -103,7 +104,9 @@ class DshellInterpreteur:
|
|
|
103
104
|
self.env[node.variable.name.value] = 0
|
|
104
105
|
for i in DshellIterator(eval_expression(node.variable.body, self)):
|
|
105
106
|
self.env[node.variable.name.value] = i
|
|
106
|
-
|
|
107
|
+
c = deepcopy(node.body)
|
|
108
|
+
await self.execute(c)
|
|
109
|
+
del c
|
|
107
110
|
|
|
108
111
|
elif isinstance(node, VarNode):
|
|
109
112
|
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name="dshellInterpreter",
|
|
8
|
-
version="0.2.10.
|
|
8
|
+
version="0.2.10.6",
|
|
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.10.4 → dshellinterpreter-0.2.10.6}/Dshell/DISCORD_COMMANDS/__init__.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/DISCORD_COMMANDS/dshell_channel.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/DISCORD_COMMANDS/dshell_member.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/DISCORD_COMMANDS/dshell_pastbin.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/DISCORD_COMMANDS/dshell_role.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/DISCORD_COMMANDS/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/_DshellInterpreteur/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/_DshellParser/dshell_parser.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/Dshell/_DshellTokenizer/__init__.py
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/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.10.4 → dshellinterpreter-0.2.10.6}/dshellInterpreter.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/dshellInterpreter.egg-info/requires.txt
RENAMED
|
File without changes
|
{dshellinterpreter-0.2.10.4 → dshellinterpreter-0.2.10.6}/dshellInterpreter.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|