aboutsummaryrefslogtreecommitdiff
path: root/examples/basic_bot.py
diff options
context:
space:
mode:
authorpikaninja <[email protected]>2021-06-27 20:59:17 -0700
committerGitHub <[email protected]>2021-06-27 23:59:17 -0400
commitcaa9512a8a2ebfcf6d75a4a1059de155a4ec967b (patch)
treec98e8b15d7ef0c0770dcae8d3b44455dc37be3a5 /examples/basic_bot.py
parentAdd support for sending multiple embeds (diff)
downloaddiscord.py-caa9512a8a2ebfcf6d75a4a1059de155a4ec967b.tar.xz
discord.py-caa9512a8a2ebfcf6d75a4a1059de155a4ec967b.zip
Make on_ready examples consistent
Diffstat (limited to 'examples/basic_bot.py')
-rw-r--r--examples/basic_bot.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/basic_bot.py b/examples/basic_bot.py
index b43062d6..d350401e 100644
--- a/examples/basic_bot.py
+++ b/examples/basic_bot.py
@@ -16,9 +16,7 @@ bot = commands.Bot(command_prefix='?', description=description, intents=intents)
@bot.event
async def on_ready():
- print('Logged in as')
- print(bot.user.name)
- print(bot.user.id)
+ print(f'Logged in as {bot.user} (ID: {bot.user.id})')
print('------')
@bot.command()