refactor: clean up initialization code

This commit is contained in:
2025-01-06 00:48:00 -05:00
parent 84768653a9
commit 63a2db8278
2 changed files with 19 additions and 22 deletions

13
main.py
View File

@@ -1,16 +1,7 @@
import time
import constants
import events
from state import client, start_time
@client.event
async def on_ready():
print(f"logged in as {client.user} in {round(time.time() - start_time, 1)}s")
await events.on_ready()
from state import client
if __name__ == "__main__":
events.prepare()
client.run(constants.SECRETS["TOKEN"])