mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Make on_ready examples consistent
This commit is contained in:
parent
47e6a754e4
commit
caa9512a8a
@ -16,9 +16,7 @@ bot = commands.Bot(command_prefix='?', description=description, intents=intents)
|
|||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_ready():
|
async def on_ready():
|
||||||
print('Logged in as')
|
print(f'Logged in as {bot.user} (ID: {bot.user.id})')
|
||||||
print(bot.user.name)
|
|
||||||
print(bot.user.id)
|
|
||||||
print('------')
|
print('------')
|
||||||
|
|
||||||
@bot.command()
|
@bot.command()
|
||||||
|
@ -128,9 +128,7 @@ bot = commands.Bot(command_prefix=commands.when_mentioned_or("!"),
|
|||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_ready():
|
async def on_ready():
|
||||||
print('Logged in as')
|
print(f'Logged in as {bot.user} (ID: {bot.user.id})')
|
||||||
print(bot.user.name)
|
|
||||||
print(bot.user.id)
|
|
||||||
print('------')
|
print('------')
|
||||||
|
|
||||||
bot.add_cog(Music(bot))
|
bot.add_cog(Music(bot))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user