forked from varia/bots
defining output_path for logs
This commit is contained in:
parent
20d9d16879
commit
1accd7d1c1
@ -106,11 +106,13 @@ logbot @uptime: To check how long @logbot has been around
|
||||
self.db[message.room] = {}
|
||||
self.db[message.room]['messages'] = {}
|
||||
self.db[message.room]['title'] = message.room
|
||||
if not os.path.isdir(message.room):
|
||||
os.mkdir(message.room)
|
||||
shutil.copy('stylesheet.css', message.room)
|
||||
output_path = os.path.join(server, message.room)
|
||||
if not os.path.isdir(output_path):
|
||||
os.mkdir(output_path)
|
||||
print('This folder is created:', output_path)
|
||||
shutil.copy('stylesheet.css', output_path)
|
||||
else:
|
||||
print('WARNING! This folder already exists:', message.room)
|
||||
print('WARNING! This folder already exists:', output_path)
|
||||
|
||||
# to debug in the terminal
|
||||
print('------------------')
|
||||
|
Loading…
Reference in New Issue
Block a user