fixed imports and inheritance

This commit is contained in:
Fadi AT 2020-03-30 14:52:48 +03:00
parent f70dd6b6ed
commit 9595de47e8

View File

@ -1,7 +1,10 @@
import asyncio
import discord import discord
import json import json
import requests import requests
from redbot.core import Config, checks, commands from redbot.core import Config, checks, commands
from redbot.core.utils.chat_formatting import box, humanize_list, pagify
embed = requests.get("https://raw.githubusercontent.com/Kanium/KanuimCogs/master/welcomeCog/embedded_message.json").text embed = requests.get("https://raw.githubusercontent.com/Kanium/KanuimCogs/master/welcomeCog/embedded_message.json").text
@ -21,7 +24,7 @@ def fetchMessage(jsonFormat):
except: except:
return 'Welcome To Kanuim !' return 'Welcome To Kanuim !'
class WelcomeCog(): class WelcomeCog(commands.Cog):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
self.message = json.loads(str(embed)) self.message = json.loads(str(embed))