forked from varia/bots
printing room_path info at setup
This commit is contained in:
parent
1ccae03d1c
commit
7f3fd2c375
@ -48,7 +48,7 @@ def download(self, message):
|
|||||||
parsed_url = urlparse(message.url)
|
parsed_url = urlparse(message.url)
|
||||||
filename = os.path.basename(parsed_url.path).replace(' ','_').replace('%20','_') # safe url's
|
filename = os.path.basename(parsed_url.path).replace(' ','_').replace('%20','_') # safe url's
|
||||||
print('as the file: ', filename)
|
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):
|
if not os.path.isdir(path):
|
||||||
os.mkdir(path)
|
os.mkdir(path)
|
||||||
file_path = os.path.join(path, filename)
|
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'Copied stylesheet.css to: { room }')
|
||||||
|
|
||||||
print('INFO ', f'Output folder is set to: { self.output }')
|
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):
|
def group(self, message):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user