diff --git a/exportchannels/exportchannels.py b/exportchannels/exportchannels.py index 1ab3e09..4b10d5d 100644 --- a/exportchannels/exportchannels.py +++ b/exportchannels/exportchannels.py @@ -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()