initial commit for moderation cog

This commit is contained in:
SeaswimmerTheFsh 2023-06-20 12:28:40 -04:00
parent 1d0d08ba47
commit d51c26c9ca
2 changed files with 47 additions and 0 deletions

View file

@ -6,6 +6,7 @@ import revolt
from revolt.ext import commands
import dotenv
from dotenv import load_dotenv
from moderation import Moderation
# This code reads the variables set in the bot's '.env' file.
env = dotenv.find_dotenv()
@ -77,6 +78,7 @@ async def main():
# This function logs into the bot user.
async with aiohttp.ClientSession() as session:
client = Client(session, token, api_url=api_url)
client.add_cog(Moderation(client))
await client.start()
asyncio.run(main())