diff --git a/discordbot/titanembeds/bot.py b/discordbot/titanembeds/bot.py index 706a5ce..df63af1 100644 --- a/discordbot/titanembeds/bot.py +++ b/discordbot/titanembeds/bot.py @@ -9,6 +9,7 @@ import sys import logging import json logging.basicConfig(filename='titanbot.log',level=logging.INFO,format='%(asctime)s %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p') +handler = logging.FileHandler(config.get("logging-location", "titanbot.log")) logging.getLogger('TitanBot') logging.getLogger('sqlalchemy') @@ -265,4 +266,4 @@ class Titan(discord.Client): for msg in self.messages: if msg.id == msg_id: return True - return False \ No newline at end of file + return False