Merge pull request #1 from sgoudham/walking-skeleton

Create Walking Skeleton
pull/3/head
Hamothy 3 years ago committed by GitHub
commit 6de47bba7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
.gitignore vendored

@ -127,3 +127,6 @@ dmypy.json
# Pyre type checker
.pyre/
# Intellij
.idea

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

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

Binary file not shown.
Loading…
Cancel
Save