aboutsummaryrefslogtreecommitdiff
path: root/examples
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
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')
-rw-r--r--examples/basic_bot.py4
-rw-r--r--examples/basic_voice.py4
2 files changed, 2 insertions, 6 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()
diff --git a/examples/basic_voice.py b/examples/basic_voice.py
index ccb01044..9f47c77a 100644
--- a/examples/basic_voice.py
+++ b/examples/basic_voice.py
@@ -128,9 +128,7 @@ bot = commands.Bot(command_prefix=commands.when_mentioned_or("!"),
@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.add_cog(Music(bot))