rename "cogs" to extensions (more accurate!)

This commit is contained in:
Abigail Gold 2019-12-07 17:26:55 -05:00
parent 18bfdb0542
commit 7f169ad3eb
No known key found for this signature in database
GPG Key ID: CF88335E873C3FB4
12 changed files with 16 additions and 17 deletions

View File

@ -1,5 +1,5 @@
""" """
ae7q cog for qrm ae7q extension for qrm
--- ---
Copyright (C) 2019 Abigail Gold, 0x5c Copyright (C) 2019 Abigail Gold, 0x5c

View File

@ -1,5 +1,5 @@
""" """
Base cog for qrm Base extension for qrm
--- ---
Copyright (C) 2019 Abigail Gold, 0x5c Copyright (C) 2019 Abigail Gold, 0x5c

View File

@ -1,5 +1,5 @@
""" """
Fun cog for qrm Fun extension for qrm
--- ---
Copyright (C) 2019 Abigail Gold, 0x5c Copyright (C) 2019 Abigail Gold, 0x5c

View File

@ -1,5 +1,5 @@
""" """
Grid cog for qrm Grid extension for qrm
--- ---
Copyright (C) 2019 Abigail Gold, 0x5c Copyright (C) 2019 Abigail Gold, 0x5c

View File

@ -1,5 +1,5 @@
""" """
Ham cog for qrm Ham extension for qrm
--- ---
Copyright (C) 2019 Abigail Gold, 0x5c Copyright (C) 2019 Abigail Gold, 0x5c

View File

@ -1,5 +1,5 @@
""" """
Image cog for qrm Image extension for qrm
--- ---
Copyright (C) 2019 Abigail Gold, 0x5c Copyright (C) 2019 Abigail Gold, 0x5c

View File

@ -1,5 +1,5 @@
""" """
Morse Code cog for qrm Morse Code extension for qrm
--- ---
Copyright (C) 2019 Abigail Gold, 0x5c Copyright (C) 2019 Abigail Gold, 0x5c

View File

@ -1,5 +1,5 @@
""" """
QRZ cog for qrm QRZ extension for qrm
--- ---
Copyright (C) 2019 Abigail Gold, 0x5c Copyright (C) 2019 Abigail Gold, 0x5c

View File

@ -1,5 +1,5 @@
""" """
Study cog for qrm Study extension for qrm
--- ---
Copyright (C) 2019 Abigail Gold, 0x5c Copyright (C) 2019 Abigail Gold, 0x5c

View File

@ -1,5 +1,5 @@
""" """
Weather cog for qrm Weather extension for qrm
--- ---
Copyright (C) 2019 Abigail Gold, 0x5c Copyright (C) 2019 Abigail Gold, 0x5c

View File

@ -25,7 +25,7 @@ from data import keys
exit_code = 1 # The default exit code. ?shutdown and ?restart will change it accordingly (fail-safe) exit_code = 1 # The default exit code. ?shutdown and ?restart will change it accordingly (fail-safe)
ext_dir = "cogs" # The name of the directory where extensions are located. ext_dir = "exts" # The name of the directory where extensions are located.
debug_mode = opt.debug # Separate assignement in-case we define an override (ternary operator goes here) debug_mode = opt.debug # Separate assignement in-case we define an override (ternary operator goes here)
@ -149,9 +149,8 @@ async def _before_ensure_activity():
# --- Run --- # --- Run ---
# bot.add_cog(GlobalSettings(bot)) for ext in opt.exts:
for cog in opt.cogs: bot.load_extension(f"exts.{ext}")
bot.load_extension(f"cogs.{cog}")
_ensure_activity.start() _ensure_activity.start()

View File

@ -26,9 +26,9 @@ debug = False
# ! This MUST be a tuple of integers. Single element tuple: `(123,)` # ! This MUST be a tuple of integers. Single element tuple: `(123,)`
owners_uids = (200102491231092736,) owners_uids = (200102491231092736,)
# The cogs to load when running the bot. # The extensions to load when running the bot.
cogs = ['basecog', 'morsecog', 'funcog', 'gridcog', 'hamcog', 'imagecog', exts = ['ae7qext', 'baseext', 'funext', 'gridext', 'hamext', 'imageext',
'studycog', 'ae7qcog', 'qrzcog', 'weathercog'] 'morseext', 'qrzext', 'studyext', 'weatherext']
# The text to put in the "playing" status. # The text to put in the "playing" status.
game = 'with lids on 7.200' game = 'with lids on 7.200'