Refactor twitch link into constant

pull/9/head
sgoudham 3 years ago
parent f95010407d
commit fa1c30d8ed
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -20,6 +20,8 @@ DB_FILE.parent.mkdir(parents=True, exist_ok=True)
LOG_FILE = Path("logs", "discord.log") LOG_FILE = Path("logs", "discord.log")
LOG_FILE.parent.mkdir(parents=True, exist_ok=True) LOG_FILE.parent.mkdir(parents=True, exist_ok=True)
TWITCH_CHANNEL = "https://www.twitch.tv/exclamation_mark_charity"
# Set Up Logging # Set Up Logging
LOGGER = logging.getLogger("discord") LOGGER = logging.getLogger("discord")
LOGGER.setLevel(logging.DEBUG) LOGGER.setLevel(logging.DEBUG)

@ -1,7 +1,7 @@
from discord import Intents, Streaming from discord import Intents, Streaming
from discord.ext.commands import Context, Bot from discord.ext.commands import Context, Bot
from exclamation_mark_charity import BOT_PREFIX, BOT_TOKEN, HAMMY, NUGGS, LUCA from exclamation_mark_charity import BOT_PREFIX, BOT_TOKEN, HAMMY, NUGGS, LUCA, TWITCH_CHANNEL
bot = Bot( bot = Bot(
command_prefix=BOT_PREFIX, command_prefix=BOT_PREFIX,
@ -9,7 +9,7 @@ bot = Bot(
help_command=None, help_command=None,
owner_ids=(HAMMY, NUGGS, LUCA) owner_ids=(HAMMY, NUGGS, LUCA)
) )
bot.activity = Streaming(name="!charity", url="https://www.twitch.tv/exclamation_mark_charity") bot.activity = Streaming(name="!charity", url=TWITCH_CHANNEL)
@bot.command() @bot.command()

Loading…
Cancel
Save