Merge pull request #94 from classabbyamp/cog-to-ext

rename "cogs" to extensions
This commit is contained in:
Abigail Gold 2019-12-08 03:18:13 -05:00 committed by GitHub
commit 73b75363c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 15 additions and 17 deletions

View File

@ -1,5 +1,5 @@
"""
ae7q cog for qrm
ae7q extension for qrm
---
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

View File

@ -1,5 +1,5 @@
"""
Fun cog for qrm
Fun extension for qrm
---
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

View File

@ -1,5 +1,5 @@
"""
Ham cog for qrm
Ham extension for qrm
---
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

View File

@ -1,5 +1,5 @@
"""
Morse Code cog for qrm
Morse Code extension for qrm
---
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

View File

@ -1,5 +1,5 @@
"""
Study cog for qrm
Study extension for qrm
---
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

View File

@ -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()

View File

@ -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'