mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
make examples on_ready consistent
This commit is contained in:
1 parent
eb5356cc47
commit
1952060e1a
8 files changed
+12
-20
No files matched your search
@@ -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