Restructuring code

pull/8/head
sgoudham 4 years ago
parent 729c8c4e8c
commit 4014aaf164

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

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

Loading…
Cancel
Save