This one too formatted with black
This commit is contained in:
parent
cea97f9bad
commit
99f7eafdb1
11
main.py
11
main.py
@ -19,7 +19,7 @@ logging.basicConfig(
|
|||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import uvloop # type: ignore
|
import uvloop # type: ignore
|
||||||
|
|
||||||
uvloop.install()
|
uvloop.install()
|
||||||
except ImportError:
|
except ImportError:
|
||||||
@ -28,9 +28,11 @@ except ImportError:
|
|||||||
|
|
||||||
@client.event
|
@client.event
|
||||||
async def on_ready():
|
async def on_ready():
|
||||||
|
|
||||||
logger.info(f"Logged in as {client.user}")
|
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():
|
def main():
|
||||||
client.add_cog(CustomChannels(client))
|
client.add_cog(CustomChannels(client))
|
||||||
@ -42,5 +44,6 @@ def main():
|
|||||||
scheduler.shutdown()
|
scheduler.shutdown()
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user