Add Info Cog #11
2 changed files with 9 additions and 0 deletions
7
cogs/info.py
Normal file
7
cogs/info.py
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
import revolt
|
||||||
|
from revolt.ext import commands
|
||||||
|
from utils.embed import CustomEmbed
|
||||||
|
|
||||||
|
class Info(commands.Cog):
|
||||||
|
def __init__(self, bot):
|
||||||
|
self.bot = bot
|
2
main.py
2
main.py
|
@ -7,6 +7,7 @@ import revolt
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
from revolt.ext import commands
|
from revolt.ext import commands
|
||||||
from cogs.moderation import Moderation
|
from cogs.moderation import Moderation
|
||||||
|
from cogs.info import Info
|
||||||
from utils.embed import CustomEmbed
|
from utils.embed import CustomEmbed
|
||||||
|
|
||||||
# This code reads the variables set in the bot's '.env' file.
|
# This code reads the variables set in the bot's '.env' file.
|
||||||
|
@ -71,6 +72,7 @@ async def main():
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
client = Client(session, token, api_url=api_url)
|
client = Client(session, token, api_url=api_url)
|
||||||
client.add_cog(Moderation(client))
|
client.add_cog(Moderation(client))
|
||||||
|
client.add_cog(Info(client))
|
||||||
await client.start()
|
await client.start()
|
||||||
|
|
||||||
asyncio.run(main())
|
asyncio.run(main())
|
||||||
|
|
Loading…
Reference in a new issue