fix(issues): hopefully fixed the cog just not working
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 5s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 5s
This commit is contained in:
parent
52752f06b5
commit
c7dd2ab0fe
1 changed files with 7 additions and 5 deletions
|
@ -21,9 +21,9 @@ class ExportChannels(commands.Cog):
|
|||
token = await self.config.bot_token()
|
||||
if token is None:
|
||||
raise(self.ConfigException, "Bot token not set!")
|
||||
self.data_path = data_manager.cog_data_path(self)
|
||||
self.bundled_data_path = data_manager.bundled_data_path(self)
|
||||
out = f'{self.data_path}{os.sep}Exported Channels'
|
||||
data_path = data_manager.cog_data_path(self)
|
||||
bundled_data_path = data_manager.bundled_data_path(self)
|
||||
out = f'{data_path}{os.sep}Exported Channels'
|
||||
channel = channels[0]
|
||||
file_location_html = f'{os.sep}{out}{os.sep}%g{os.sep}%c{os.sep}Export.html'
|
||||
file_location_json = f'{os.sep}{out}{os.sep}%g{os.sep}%c{os.sep}DCE-f.json'
|
||||
|
@ -39,10 +39,11 @@ class ExportChannels(commands.Cog):
|
|||
'--output', file_location_html,
|
||||
'--token', token,
|
||||
'--channel', channel,
|
||||
'--reuse-media',
|
||||
'--media',
|
||||
'--fuck_russia', 'true',
|
||||
]
|
||||
os.chdir(self.bundled_data_path)
|
||||
os.chdir(bundled_data_path)
|
||||
process_1 = await asyncio.create_subprocess_exec(*args)
|
||||
while True:
|
||||
return_code_1 = process_1.poll()
|
||||
|
@ -58,9 +59,10 @@ class ExportChannels(commands.Cog):
|
|||
'--channel', channels,
|
||||
'--reuse_media',
|
||||
'--media',
|
||||
'--markdown', 'false',
|
||||
'--fuck_russia', 'true',
|
||||
]
|
||||
os.chdir(self.bundled_data_path)
|
||||
os.chdir(bundled_data_path)
|
||||
process_2 = await asyncio.create_subprocess_exec(*args)
|
||||
while True:
|
||||
return_code_2 = process_2.poll()
|
||||
|
|
Loading…
Reference in a new issue