changed extensions to cogs, removed mentions of plugins/extensions

This commit is contained in:
phixxy 2024-02-14 00:07:06 -08:00
parent bdcdd87348
commit 0e5cb9dd0f
17 changed files with 6 additions and 6 deletions

2
.gitignore vendored
View file

@ -1,5 +1,5 @@
phixxy.com/
extensions/__pycache__/
cogs/__pycache__/
data/
logs/
src/__pycache__/

View file

@ -12,13 +12,13 @@ logger = src.logger.logger_setup()
async def load_cogs(bot: commands.Bot, cog_path: str) -> None:
for plugin_file in os.listdir(cog_path):
if plugin_file[-3:] == '.py':
for cog_file in os.listdir(cog_path):
if cog_file[-3:] == '.py':
try:
await bot.load_extension(f'extensions.{plugin_file[:-3]}')
logger.info(f"Successfully loaded plugin {plugin_file}")
await bot.load_extension(f'extensions.{cog_file[:-3]}')
logger.info(f"Successfully loaded cog {cog_file}")
except:
logger.exception(f"Failed to load plugin {plugin_file}")
logger.exception(f"Failed to load cog {cog_file}")
@bot.event
async def on_ready():