Merge pull request #9 from sgoudham/discord-activity

pull/11/head
Hamothy 3 years ago committed by GitHub
commit 838921043d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,6 +7,11 @@ from dotenv import load_dotenv
# Setup
load_dotenv()
# Owner IDs
HAMMY = 154840866496839680
NUGGS = 337175192751308801
LUCA = 216625083186151425
# Constants
BOT_TOKEN = os.environ.get("CHARITY_BOT_TOKEN")
BOT_PREFIX = "!"
@ -15,6 +20,8 @@ DB_FILE.parent.mkdir(parents=True, exist_ok=True)
LOG_FILE = Path("logs", "discord.log")
LOG_FILE.parent.mkdir(parents=True, exist_ok=True)
TWITCH_CHANNEL = "https://www.twitch.tv/exclamation_mark_charity"
# Set Up Logging
LOGGER = logging.getLogger("discord")
LOGGER.setLevel(logging.DEBUG)

@ -1,10 +1,15 @@
from discord import Intents
from discord.ext import commands
from discord.ext.commands import Context
from discord import Intents, Streaming
from discord.ext.commands import Context, Bot
from exclamation_mark_charity import BOT_PREFIX, BOT_TOKEN
from exclamation_mark_charity import BOT_PREFIX, BOT_TOKEN, HAMMY, NUGGS, LUCA, TWITCH_CHANNEL
bot = commands.Bot(command_prefix=BOT_PREFIX, intents=Intents.all())
bot = Bot(
command_prefix=BOT_PREFIX,
intents=Intents.all(),
help_command=None,
owner_ids=(HAMMY, NUGGS, LUCA)
)
bot.activity = Streaming(name="!charity", url=TWITCH_CHANNEL)
@bot.command()

Loading…
Cancel
Save