mirror of
https://github.com/miaowware/qrm2.git
synced 2025-07-01 15:45:16 -04:00
Merge pull request #94 from classabbyamp/cog-to-ext
rename "cogs" to extensions
This commit is contained in:
commit
73b75363c0
@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
ae7q cog for qrm
|
ae7q extension for qrm
|
||||||
---
|
---
|
||||||
Copyright (C) 2019 Abigail Gold, 0x5c
|
Copyright (C) 2019 Abigail Gold, 0x5c
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
Base cog for qrm
|
Base extension for qrm
|
||||||
---
|
---
|
||||||
Copyright (C) 2019 Abigail Gold, 0x5c
|
Copyright (C) 2019 Abigail Gold, 0x5c
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
Fun cog for qrm
|
Fun extension for qrm
|
||||||
---
|
---
|
||||||
Copyright (C) 2019 Abigail Gold, 0x5c
|
Copyright (C) 2019 Abigail Gold, 0x5c
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
Grid cog for qrm
|
Grid extension for qrm
|
||||||
---
|
---
|
||||||
Copyright (C) 2019 Abigail Gold, 0x5c
|
Copyright (C) 2019 Abigail Gold, 0x5c
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
Ham cog for qrm
|
Ham extension for qrm
|
||||||
---
|
---
|
||||||
Copyright (C) 2019 Abigail Gold, 0x5c
|
Copyright (C) 2019 Abigail Gold, 0x5c
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
Image cog for qrm
|
Image extension for qrm
|
||||||
---
|
---
|
||||||
Copyright (C) 2019 Abigail Gold, 0x5c
|
Copyright (C) 2019 Abigail Gold, 0x5c
|
||||||
|
|
@ -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
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
QRZ cog for qrm
|
QRZ extension for qrm
|
||||||
---
|
---
|
||||||
Copyright (C) 2019 Abigail Gold, 0x5c
|
Copyright (C) 2019 Abigail Gold, 0x5c
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
Study cog for qrm
|
Study extension for qrm
|
||||||
---
|
---
|
||||||
Copyright (C) 2019 Abigail Gold, 0x5c
|
Copyright (C) 2019 Abigail Gold, 0x5c
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
Weather cog for qrm
|
Weather extension for qrm
|
||||||
---
|
---
|
||||||
Copyright (C) 2019 Abigail Gold, 0x5c
|
Copyright (C) 2019 Abigail Gold, 0x5c
|
||||||
|
|
7
main.py
7
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)
|
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()
|
||||||
|
|
||||||
|
@ -26,9 +26,8 @@ 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 = ['ae7q', 'base', 'fun', 'grid', 'ham', 'image', 'morse', 'qrz', 'study', 'weather']
|
||||||
'studycog', 'ae7qcog', 'qrzcog', 'weathercog']
|
|
||||||
|
|
||||||
# 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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user