mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 09:26:10 +00:00
make examples on_ready consistent
This commit is contained in:
@ -9,9 +9,7 @@ class MyClient(discord.Client):
|
||||
self.bg_task = self.loop.create_task(self.my_background_task())
|
||||
|
||||
async def on_ready(self):
|
||||
print('Logged in as')
|
||||
print(self.user.name)
|
||||
print(self.user.id)
|
||||
print(f'Logged in as {self.user} (ID: {self.user.id})')
|
||||
print('------')
|
||||
|
||||
async def my_background_task(self):
|
||||
|
Reference in New Issue
Block a user