From 7f3fd2c375e5f8b7a726eca188eb24000a7ac6c9 Mon Sep 17 00:00:00 2001 From: manetta Date: Wed, 17 Feb 2021 17:09:36 +0100 Subject: [PATCH] printing room_path info at setup --- LogBot/logbot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LogBot/logbot.py b/LogBot/logbot.py index 9a8930e..945505a 100644 --- a/LogBot/logbot.py +++ b/LogBot/logbot.py @@ -48,7 +48,7 @@ def download(self, message): parsed_url = urlparse(message.url) filename = os.path.basename(parsed_url.path).replace(' ','_').replace('%20','_') # safe url's print('as the file: ', filename) - path = os.path.join(self.room_path, message.room, media_type) + path = os.path.join(self.room_path, media_type) if not os.path.isdir(path): os.mkdir(path) file_path = os.path.join(path, filename) @@ -114,6 +114,7 @@ logbot @uptime: To check how long @logbot has been around print('INFO ', f'Copied stylesheet.css to: { room }') print('INFO ', f'Output folder is set to: { self.output }') + print('INFO ', f'Room path is set to: { self.room_path }') def group(self, message):