PycordViews 1.2.1__tar.gz → 1.2.2__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.
- {pycordviews-1.2.1 → pycordviews-1.2.2}/PKG-INFO +1 -1
- {pycordviews-1.2.1 → pycordviews-1.2.2}/PycordViews.egg-info/PKG-INFO +1 -1
- {pycordviews-1.2.1 → pycordviews-1.2.2}/pycordViews/multibot/process.py +8 -8
- {pycordviews-1.2.1 → pycordviews-1.2.2}/setup.py +1 -1
- {pycordviews-1.2.1 → pycordviews-1.2.2}/LICENSE +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/PycordViews.egg-info/SOURCES.txt +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/PycordViews.egg-info/dependency_links.txt +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/PycordViews.egg-info/requires.txt +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/PycordViews.egg-info/top_level.txt +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/README.md +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/pycordViews/__init__.py +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/pycordViews/menu/__init__.py +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/pycordViews/menu/errors.py +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/pycordViews/menu/menu.py +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/pycordViews/menu/selectMenu.py +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/pycordViews/multibot/__init__.py +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/pycordViews/multibot/bot.py +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/pycordViews/multibot/errors.py +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/pycordViews/multibot/multibot.py +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/pycordViews/pagination/__init__.py +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/pycordViews/pagination/errors.py +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/pycordViews/pagination/pagination_view.py +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/pycordViews/views/__init__.py +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/pycordViews/views/easy_modified_view.py +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/pycordViews/views/errors.py +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/pyproject.toml +0 -0
- {pycordviews-1.2.1 → pycordviews-1.2.2}/setup.cfg +0 -0
@@ -100,7 +100,7 @@ class ManageProcess:
|
|
100
100
|
self.__bots[bot_name] = DiscordBot(token, intents)
|
101
101
|
return f'Bot {bot_name} added'
|
102
102
|
|
103
|
-
def add_pyFile_commands(self,
|
103
|
+
def add_pyFile_commands(self, bot_name: str, file: str, setup_function: str, reload_command: bool):
|
104
104
|
"""
|
105
105
|
Ajoute et charge un fichier de commande bot et ses dépendances.
|
106
106
|
Les fichiers doivent avoir une fonction appelée « setup » ou un équivalent passé en paramètre.
|
@@ -108,26 +108,26 @@ class ManageProcess:
|
|
108
108
|
def setup(bot: Bot) :
|
109
109
|
...
|
110
110
|
|
111
|
-
:param
|
111
|
+
:param bot_name : Le nom du bot à ajouter au fichier de commandes
|
112
112
|
:param file: Chemin relatif ou absolue du fichier de commande
|
113
113
|
:param setup_function : Nom de la fonction appelée par le processus pour donner l'instance de Bot.
|
114
114
|
:param reload_command : Recharge toutes les commandes dans le fichier et les dépendances. Défaut : True
|
115
115
|
"""
|
116
|
-
self.if_bot_no_exist(
|
116
|
+
self.if_bot_no_exist(bot_name)
|
117
117
|
setup_function = Str_(setup_function).str_
|
118
118
|
file = Str_(file).str_
|
119
|
-
self.__bots[
|
119
|
+
self.__bots[bot_name].add_pyFile_commands(file=file, setup_function=setup_function, reload_command=reload_command)
|
120
120
|
|
121
|
-
def modify_pyFile_commands(self,
|
121
|
+
def modify_pyFile_commands(self, bot_name: str, file: str, setup_function: str):
|
122
122
|
"""
|
123
123
|
Modifie un fichier de comandes et le recharge.
|
124
124
|
Ne recharge que le fichier et non les commandes du bot !
|
125
|
-
:param
|
125
|
+
:param bot_name: Le nom du bot
|
126
126
|
:param file: Le chemin d'accès relatif ou absolue du fichier
|
127
127
|
"""
|
128
|
-
self.if_bot_no_exist(
|
128
|
+
self.if_bot_no_exist(bot_name)
|
129
129
|
file = Str_(file).str_
|
130
|
-
self.__bots[
|
130
|
+
self.__bots[bot_name].modify_pyFile_commands(file=file, setup_function=setup_function)
|
131
131
|
|
132
132
|
|
133
133
|
def reload_all_commands(self, bot_name: str):
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|