Fix smells in submission init file.
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
"""
|
"""Cog for creating submission process."""
|
||||||
Cog for creating submission process.
|
|
||||||
"""
|
|
||||||
|
|
||||||
from nextcord.ext import commands
|
from nextcord.ext import commands
|
||||||
|
|
||||||
@@ -15,14 +13,14 @@ class SubmissionCog(commands.Cog, name="Submission Cog"):
|
|||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
@commands.Cog.listener()
|
@commands.Cog.listener()
|
||||||
async def on_ready(self):
|
async def on_ready(self) -> None:
|
||||||
"""Called when cog is loaded"""
|
"""Called when cog is loaded."""
|
||||||
self.bot.add_view(SubmissionCreateButton(self.bot))
|
self.bot.add_view(SubmissionCreateButton(self.bot))
|
||||||
self.bot.add_view(VerificationView())
|
self.bot.add_view(VerificationView())
|
||||||
|
|
||||||
|
|
||||||
# This function will be called when this extension is loaded.
|
# This function will be called when this extension is loaded.
|
||||||
# It is necessary to add these functions to the bot.
|
# It is necessary to add these functions to the bot.
|
||||||
def setup(bot: commands.Bot):
|
def setup(bot: commands.Bot) -> None:
|
||||||
"""Adds function to bot"""
|
"""Adds function to bot."""
|
||||||
bot.add_cog(SubmissionCog(bot))
|
bot.add_cog(SubmissionCog(bot))
|
||||||
|
|||||||
Reference in New Issue
Block a user