YotsugiMain.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:YotsugiBot 作者: Kyousei 项目源码 文件源码
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=''))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号