From 99f7eafdb1ba61b41f37973d71a0b4b1ab943c0b Mon Sep 17 00:00:00 2001 From: profitroll Date: Thu, 4 May 2023 16:14:33 +0200 Subject: [PATCH] This one too formatted with black --- main.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 9bb782c..9fb86db 100644 --- a/main.py +++ b/main.py @@ -19,7 +19,7 @@ logging.basicConfig( logger = logging.getLogger(__name__) try: - import uvloop # type: ignore + import uvloop # type: ignore uvloop.install() except ImportError: @@ -28,9 +28,11 @@ except ImportError: @client.event async def on_ready(): - logger.info(f"Logged in as {client.user}") - await client.change_presence(activity=Activity(type=ActivityType.listening, name=await config_get("status"))) + await client.change_presence( + activity=Activity(type=ActivityType.listening, name=await config_get("status")) + ) + def main(): client.add_cog(CustomChannels(client)) @@ -42,5 +44,6 @@ def main(): scheduler.shutdown() exit() + if __name__ == "__main__": - main() \ No newline at end of file + main()