From 4014aaf164e45aaa9b830f7689647ca9d5bccd17 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Thu, 23 Jul 2020 23:22:08 +0100 Subject: [PATCH] Restructuring code --- main.py | 11 ----------- settings.py | 3 +-- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/main.py b/main.py index a7117c3f..83febd53 100644 --- a/main.py +++ b/main.py @@ -481,17 +481,6 @@ except discord.errors.LoginFailure as e: print("Login unsuccessful.") """ -def write_to_dm_file(time, author, content): - with open('images/logs/dm-logs.txt', mode='a') as dm_logs_file: - dm_logs_file.write(f"{time}: {author}: {content}") - - # File Writing Variables - time = message.created_at - msg_time = time.strftime('%Y-%m-%dT%H:%M:%S') - msg_author = message.author - msg_content = message.content - - # Don't count messages that are taken in the dms if not isinstance(message.channel, DMChannel): # Using connection to the database diff --git a/settings.py b/settings.py index a102dacf..942a5e31 100644 --- a/settings.py +++ b/settings.py @@ -69,7 +69,6 @@ enso_modmail_ID = 728083016290926623 # Returns a list of all the cogs def extensions(): ext = ['cogs.interactive', 'cogs.anime', 'cogs.relationship', - 'cogs.info', 'cogs.fun', 'cogs.enso', - 'cogs.modmail'] + 'cogs.info', 'cogs.fun', 'cogs.enso', 'cogs.modmail'] return ext