diff --git a/exclamation_mark_charity/__init__.py b/exclamation_mark_charity/__init__.py new file mode 100644 index 0000000..0e09845 --- /dev/null +++ b/exclamation_mark_charity/__init__.py @@ -0,0 +1,18 @@ +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) diff --git a/exclamation_mark_charity/runner.py b/exclamation_mark_charity/runner.py new file mode 100644 index 0000000..b5f531e --- /dev/null +++ b/exclamation_mark_charity/runner.py @@ -0,0 +1,17 @@ +import discord +from discord.ext import commands +from discord.ext.commands import Context + +from exclamation_mark_charity import BOT_PREFIX, BOT_TOKEN + +intents = discord.Intents.default() +intents.members = True +bot = commands.Bot(command_prefix=BOT_PREFIX, description="idk", intents=intents) + + +@bot.command() +async def charity(ctx: Context): + await ctx.send("!charity") + + +bot.run(BOT_TOKEN) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..f59f702 Binary files /dev/null and b/requirements.txt differ