aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2020-07-18 15:52:25 +0200
committerGravatar Numerlor <[email protected]>2020-07-18 15:52:25 +0200
commitdaa46eccc6518e567777240d7b94f121c5eacf57 (patch)
tree858bbf85fcc9c10f0152f36e434f275500b6a420
parentRename inventories to doc_symbols. (diff)
Create a package for the Doc cog.
-rw-r--r--bot/cogs/doc/__init__.py7
-rw-r--r--bot/cogs/doc/cog.py (renamed from bot/cogs/doc.py)7
2 files changed, 8 insertions, 6 deletions
diff --git a/bot/cogs/doc/__init__.py b/bot/cogs/doc/__init__.py
new file mode 100644
index 000000000..19a71ee66
--- /dev/null
+++ b/bot/cogs/doc/__init__.py
@@ -0,0 +1,7 @@
+from bot.bot import Bot
+from .cog import DocCog
+
+
+def setup(bot: Bot) -> None:
+ """Load the Doc cog."""
+ bot.add_cog(DocCog(bot))
diff --git a/bot/cogs/doc.py b/bot/cogs/doc/cog.py
index 526747bf4..463e4ebc6 100644
--- a/bot/cogs/doc.py
+++ b/bot/cogs/doc/cog.py
@@ -171,7 +171,7 @@ class InventoryURL(commands.Converter):
return url
-class Doc(commands.Cog):
+class DocCog(commands.Cog):
"""A set of commands for querying & displaying documentation."""
def __init__(self, bot: Bot):
@@ -596,8 +596,3 @@ class Doc(commands.Cog):
return True
return tag.name == "table"
-
-
-def setup(bot: Bot) -> None:
- """Load the Doc cog."""
- bot.add_cog(Doc(bot))