Fix: Changed everything to conform to Flake8.
Fix: Added some code to fix the reconnect/disconnect error. Docs: Added setup.cfg to set everything to be 120.
This commit is contained in:
12
main.py
12
main.py
@ -1,16 +1,20 @@
|
||||
from nessa.nessa import Nessa
|
||||
from nessa.database import init_db
|
||||
import asyncio
|
||||
from dotenv import load_dotenv
|
||||
import os
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
from nessa.database import init_db
|
||||
from nessa.nessa import Nessa
|
||||
|
||||
load_dotenv()
|
||||
|
||||
TOKEN = os.getenv("DISCORD_BOT_TOKEN")
|
||||
|
||||
|
||||
async def main():
|
||||
await init_db()
|
||||
client = Nessa()
|
||||
await client.start(TOKEN)
|
||||
|
||||
asyncio.run(main())
|
||||
|
||||
asyncio.run(main())
|
||||
|
Reference in New Issue
Block a user