def on_ready():
print("Logging In...")
time.sleep(2)
print("Checking files..")
if not os.path.isfile("credentials.py"):
print(Back.RED + "credentials.py not found! Please add it then try again!")
await client.logout()
elif not os.path.isfile("data/images/coin/heads.png"):
print(Back.RED + "heads.png not found! Please add it then try again!")
await client.logout()
elif not os.path.isfile("data/images/coin/tails.png"):
await client.logout()
print(Back.RED + "tails.png not found! Please add it then try again!")
await client.logout()
time.sleep(2)
print("Logged In | Client Credentials")
print("\n Client Name: {}".format(client.user.name) +"\n Client ID: {}".format(client.user.id) + "\n Prefix: {}".format(prefix) + "\n Embed Color: {}".format(embed_color) + "\n Version: {}".format(bot_version) + "\n Owner ID: {}".format(owner))
await client.change_presence(game=discord.Game(name=''))
评论列表
文章目录