diff --git a/exclamation_mark_charity/__init__.py b/exclamation_mark_charity/__init__.py index 49dd4da..b41dc41 100644 --- a/exclamation_mark_charity/__init__.py +++ b/exclamation_mark_charity/__init__.py @@ -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) diff --git a/exclamation_mark_charity/runner.py b/exclamation_mark_charity/runner.py index c8d8f44..6cb1433 100644 --- a/exclamation_mark_charity/runner.py +++ b/exclamation_mark_charity/runner.py @@ -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()