From ffa9fd09f87bb6e25b387cf5a76a288abbd6835a Mon Sep 17 00:00:00 2001 From: sgoudham Date: Tue, 12 Apr 2022 03:03:10 +0100 Subject: [PATCH] Setup basic walking skeleton --- exclamation_mark_charity/__init__.py | 18 ++++++++++++++++++ exclamation_mark_charity/runner.py | 17 +++++++++++++++++ requirements.txt | Bin 0 -> 606 bytes 3 files changed, 35 insertions(+) create mode 100644 exclamation_mark_charity/__init__.py create mode 100644 exclamation_mark_charity/runner.py create mode 100644 requirements.txt 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 0000000000000000000000000000000000000000..f59f70224c8e076b61b3eea1b285f7830f360622 GIT binary patch literal 606 zcmZXS%}#?r6ot>)#7BX&v|2Z=+#BD(G=LUUC;>F>%d6kHLv0!}88UFs9|wNEw`z3I zP7|xwBWtBx5A3CGb)&6Doz$sR2BJ}`8vG|`W7pso>|(}RWq{#XfkHkbtW@fa)x^w` zrS5{AW;>h)Rj6MpFG9J*bI%??wQTF#*Z%83R49*l7*mn8Cw0cN4!t^fB`3dYH|I0g zIg-OQKM%fLjM%VO;nJYp&HnBwJ#Fb@AL>@IkD2$OeeTA&K5(|br)C?m30