Skip to content

Commit 7cf4c89

Browse files
authored
Merge pull request #15 from A-Baji/dev
rollback modelizer
2 parents 1af8cab + 07af4e8 commit 7cf4c89

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

discordai/bot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ async def load_cogs() -> None:
125125
if not os.path.exists(cogs_path):
126126
data_dir = pathlib.Path(sys._MEIPASS)
127127
og_cogs_path = data_dir / "discordai" / "bot" / "cogs"
128-
shutil.copytree(og_cogs_path, data_dir / cogs_path)
128+
shutil.copytree(og_cogs_path, cogs_path)
129129
for file in os.listdir(cogs_path):
130130
if file.endswith(".py"):
131131
extension = file[:-3]

discordai/template.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def gen_new_command(model_id: str, command_name: str, temp_default: float, pres_
7171
if not os.path.exists(cogs_path):
7272
data_dir = pathlib.Path(sys._MEIPASS)
7373
og_cogs_path = data_dir / "discordai" / "bot" / "cogs"
74-
shutil.copytree(og_cogs_path, data_dir / cogs_path)
74+
shutil.copytree(og_cogs_path, cogs_path)
7575
else:
7676
# The code is being run normally
7777
template_dir = pathlib.Path(os.path.dirname(__file__))
@@ -101,7 +101,7 @@ def delete_command(command_name: str):
101101
if not os.path.exists(cogs_path):
102102
data_dir = pathlib.Path(sys._MEIPASS)
103103
og_cogs_path = data_dir / "discordai" / "bot" / "cogs"
104-
shutil.copytree(og_cogs_path, data_dir / cogs_path)
104+
shutil.copytree(og_cogs_path, cogs_path)
105105
else:
106106
# The code is being run normally
107107
template_dir = pathlib.Path(os.path.dirname(__file__))

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ discord.py
22
openai
33
pandas
44
appdirs
5-
discordai_modelizer @ git+https://github.com/A-Baji/[email protected].2
5+
discordai_modelizer @ git+https://github.com/A-Baji/[email protected].1

0 commit comments

Comments
 (0)