Imported more modules at the top to make code look cleaner

pull/8/head
sgoudham 4 years ago
parent 753911d94a
commit 3d480fe7e9

@ -2,8 +2,7 @@ import datetime
import random import random
from discord import Colour, Embed, Member from discord import Colour, Embed, Member
from discord.ext import commands from discord.ext.commands import cooldown, command, BucketType, bot_has_permissions, Cog
from discord.ext.commands import cooldown, command, BucketType, bot_has_permissions
import db import db
from settings import colour_list from settings import colour_list
@ -20,13 +19,13 @@ def getMember(ctx):
# Set up the Cog # Set up the Cog
class Interactive(commands.Cog): class Interactive(Cog):
"""Interactive Commands! (E.G Kiss/Hug/Cuddle)""" """Interactive Commands! (E.G Kiss/Hug/Cuddle)"""
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