changed the init

This commit is contained in:
Fadi AT 2020-03-30 14:47:48 +03:00
parent 825d9b945b
commit 5b6c7d6ce8
2 changed files with 5 additions and 3 deletions

View File

@ -2,4 +2,4 @@ from .welcome import WelcomeCog
from redbot.core.bot import Red
def setup(bot: Red):
bot.add_cog(WelcomeCog(bot))
bot.add_cog(WelcomeCog())

View File

@ -21,8 +21,10 @@ def fetchMessage(jsonFormat):
except:
return 'Welcome To Kanuim !'
class WelcomeCog(commands.Cog):
def __init__(self, bot):
class WelcomeCog():
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.message = json.loads(str(embed))
self.bot = bot