You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
exclamation-mark-charity/exclamation_mark_charity/__init__.py

19 lines
437 B
Python

import logging
import os
from dotenv import load_dotenv
# Setup
load_dotenv()
# Constants
BOT_TOKEN = os.environ.get("BOT_TOKEN")
BOT_PREFIX = "!"
# Set Up Logging
logger = logging.getLogger('discord')
logger.setLevel(logging.DEBUG)
handler = logging.FileHandler(filename='discord.log', encoding='utf-8', mode='w')
handler.setFormatter(logging.Formatter('%(asctime)s:%(levelname)s:%(name)s: %(message)s'))
logger.addHandler(handler)