initial commit for moderation cog
This commit is contained in:
parent
1d0d08ba47
commit
d51c26c9ca
2 changed files with 47 additions and 0 deletions
2
main.py
2
main.py
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue