Files
Pac-cogs/videoarchiver/__init__.py

13 lines
346 B
Python

"""VideoArchiver cog for Red-DiscordBot"""
from redbot.core.bot import Red
from .video_archiver import VideoArchiver
async def setup(bot: Red) -> None:
"""Load VideoArchiver."""
cog = VideoArchiver(bot)
await bot.add_cog(cog)
# Sync commands with Discord
if not hasattr(bot, "tree"):
return
await bot.tree.sync()