Imported cog from discord.ext.commands at the top

pull/8/head
sgoudham 4 years ago
parent 4e0535228b
commit ca9681c931

@ -3,8 +3,7 @@ import datetime
import random import random
from discord import Member, Embed, Colour from discord import Member, Embed, Colour
from discord.ext import commands from discord.ext.commands import BucketType, command, cooldown, bot_has_permissions, Cog
from discord.ext.commands import BucketType, command, cooldown, bot_has_permissions
import db import db
from db import connection from db import connection
@ -44,13 +43,13 @@ def marriageInfo(target, marriedUser, marriedDate, currentDate, married):
# Set up the Cog # Set up the Cog
class Relationship(commands.Cog): class Relationship(Cog):
"""Marry/Divorce etc!""" """Marry/Divorce etc!"""
def __init__(self, bot): def __init__(self, bot):
self.bot = bot self.bot = bot
@commands.Cog.listener() @Cog.listener()
async def on_ready(self): async def on_ready(self):
"""Printing out that Cog is ready on startup""" """Printing out that Cog is ready on startup"""
print(f"{self.__class__.__name__} Cog has been loaded\n-----") print(f"{self.__class__.__name__} Cog has been loaded\n-----")

Loading…
Cancel
Save