diff --git a/cogs/ae7qcog.py b/exts/ae7q.py similarity index 99% rename from cogs/ae7qcog.py rename to exts/ae7q.py index 8e94690..015808c 100644 --- a/cogs/ae7qcog.py +++ b/exts/ae7q.py @@ -1,5 +1,5 @@ """ -ae7q cog for qrm +ae7q extension for qrm --- Copyright (C) 2019 Abigail Gold, 0x5c diff --git a/cogs/basecog.py b/exts/base.py similarity index 99% rename from cogs/basecog.py rename to exts/base.py index 65c2d16..2bcf9eb 100644 --- a/cogs/basecog.py +++ b/exts/base.py @@ -1,5 +1,5 @@ """ -Base cog for qrm +Base extension for qrm --- Copyright (C) 2019 Abigail Gold, 0x5c diff --git a/cogs/funcog.py b/exts/fun.py similarity index 97% rename from cogs/funcog.py rename to exts/fun.py index 5662b0f..f7352ba 100644 --- a/cogs/funcog.py +++ b/exts/fun.py @@ -1,5 +1,5 @@ """ -Fun cog for qrm +Fun extension for qrm --- Copyright (C) 2019 Abigail Gold, 0x5c diff --git a/cogs/gridcog.py b/exts/grid.py similarity index 99% rename from cogs/gridcog.py rename to exts/grid.py index 5e5f9dd..e8ca466 100644 --- a/cogs/gridcog.py +++ b/exts/grid.py @@ -1,5 +1,5 @@ """ -Grid cog for qrm +Grid extension for qrm --- Copyright (C) 2019 Abigail Gold, 0x5c diff --git a/cogs/hamcog.py b/exts/ham.py similarity index 99% rename from cogs/hamcog.py rename to exts/ham.py index 90113e1..2f14eda 100644 --- a/cogs/hamcog.py +++ b/exts/ham.py @@ -1,5 +1,5 @@ """ -Ham cog for qrm +Ham extension for qrm --- Copyright (C) 2019 Abigail Gold, 0x5c diff --git a/cogs/imagecog.py b/exts/image.py similarity index 99% rename from cogs/imagecog.py rename to exts/image.py index 51d4d7b..1056957 100644 --- a/cogs/imagecog.py +++ b/exts/image.py @@ -1,5 +1,5 @@ """ -Image cog for qrm +Image extension for qrm --- Copyright (C) 2019 Abigail Gold, 0x5c diff --git a/cogs/morsecog.py b/exts/morse.py similarity index 99% rename from cogs/morsecog.py rename to exts/morse.py index 0ba8ab0..4b84ff4 100644 --- a/cogs/morsecog.py +++ b/exts/morse.py @@ -1,5 +1,5 @@ """ -Morse Code cog for qrm +Morse Code extension for qrm --- Copyright (C) 2019 Abigail Gold, 0x5c diff --git a/cogs/qrzcog.py b/exts/qrz.py similarity index 99% rename from cogs/qrzcog.py rename to exts/qrz.py index caaf530..07db40c 100644 --- a/cogs/qrzcog.py +++ b/exts/qrz.py @@ -1,5 +1,5 @@ """ -QRZ cog for qrm +QRZ extension for qrm --- Copyright (C) 2019 Abigail Gold, 0x5c diff --git a/cogs/studycog.py b/exts/study.py similarity index 99% rename from cogs/studycog.py rename to exts/study.py index b72348c..e19b12d 100644 --- a/cogs/studycog.py +++ b/exts/study.py @@ -1,5 +1,5 @@ """ -Study cog for qrm +Study extension for qrm --- Copyright (C) 2019 Abigail Gold, 0x5c diff --git a/cogs/weathercog.py b/exts/weather.py similarity index 99% rename from cogs/weathercog.py rename to exts/weather.py index 4be5317..a72e806 100644 --- a/cogs/weathercog.py +++ b/exts/weather.py @@ -1,5 +1,5 @@ """ -Weather cog for qrm +Weather extension for qrm --- Copyright (C) 2019 Abigail Gold, 0x5c diff --git a/main.py b/main.py index 65c2a16..56717b0 100644 --- a/main.py +++ b/main.py @@ -25,7 +25,7 @@ import data.keys as keys 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) @@ -149,9 +149,8 @@ async def _before_ensure_activity(): # --- Run --- -# bot.add_cog(GlobalSettings(bot)) -for cog in opt.cogs: - bot.load_extension(f"cogs.{cog}") +for ext in opt.exts: + bot.load_extension(f"exts.{ext}") _ensure_activity.start() diff --git a/templates/data/options.py b/templates/data/options.py index 8c60b01..81ecc8b 100644 --- a/templates/data/options.py +++ b/templates/data/options.py @@ -26,9 +26,8 @@ debug = False # ! This MUST be a tuple of integers. Single element tuple: `(123,)` owners_uids = (200102491231092736,) -# The cogs to load when running the bot. -cogs = ['basecog', 'morsecog', 'funcog', 'gridcog', 'hamcog', 'imagecog', - 'studycog', 'ae7qcog', 'qrzcog', 'weathercog'] +# The extensions to load when running the bot. +exts = ['ae7q', 'base', 'fun', 'grid', 'ham', 'image', 'morse', 'qrz', 'study', 'weather'] # The text to put in the "playing" status. game = 'with lids on 7.200'