aboutsummaryrefslogtreecommitdiff
path: root/examples/background_task.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/background_task.py')
-rw-r--r--examples/background_task.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/background_task.py b/examples/background_task.py
index 5c07ad1a..77ca885a 100644
--- a/examples/background_task.py
+++ b/examples/background_task.py
@@ -13,9 +13,7 @@ class MyClient(discord.Client):
self.my_background_task.start()
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('------')
@tasks.loop(seconds=60) # task runs every 60 seconds