printing room_path info at setup

This commit is contained in:
manetta 2021-02-17 17:09:36 +01:00
parent 1ccae03d1c
commit 7f3fd2c375

View File

@ -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):