11 lines
310 B
Python
11 lines
310 B
Python
from datetime import datetime as dt
|
|
import datetime
|
|
|
|
def log_output(logs):
|
|
log_filename = '_'.join('Bot Logs {0}'.format(datetime.date(dt.today().year, dt.today().month,dt.today().day).isoformat()).split())
|
|
|
|
log_file = open('logs/' + log_filename, 'a+')
|
|
|
|
log_file.write(logs)
|
|
|
|
log_file.close()
|