From 16e74356d48ace1ed05d071cf7a2abc447b9f534 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 11 Aug 2023 15:57:41 -0400 Subject: [PATCH] feat: improved windows compatibility --- exportchannels/exportchannels.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/exportchannels/exportchannels.py b/exportchannels/exportchannels.py index 8fa8cc0..3f5d2c4 100644 --- a/exportchannels/exportchannels.py +++ b/exportchannels/exportchannels.py @@ -21,6 +21,8 @@ class ExportChannels(commands.Cog): self.bundled_data_path = data_manager.bundled_data_path(self) out = f'{self.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' try: os.mkdir(out) except FileExistsError: @@ -30,9 +32,9 @@ class ExportChannels(commands.Cog): 'DiscordChatExporter.Cli.dll', 'export', '--format', 'HtmlDark', - '--output', f'{os.sep}{out}{os.sep}%G (%g){os.sep}%C (%c){os.sep}Export.html', - '--token', f'{token}', - '--channel', {channel}, + '--output', file_location_html, + '--token', token, + '--channel', channel, '--media', '--fuck_russia', 'true', ] @@ -43,9 +45,9 @@ class ExportChannels(commands.Cog): 'DiscordChatExporter.Cli.dll', 'export', '--format', 'Json', - '--output', f'{os.sep}{out}{os.sep}%G (%g){os.sep}%C (%c){os.sep}DCE-f.json', - '--token', f'{token}', - '--channel', {channels}, + '--output', file_location_json, + '--token', token, + '--channel', channels, '--reuse_media', '--media', '--fuck_russia', 'true',