bot.py 文件源码

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

项目:PoiBot 作者: link2110 项目源码 文件源码
def on_server_join(server):
    """Create the Admin role, Muted role, and then add Muted perms to every channel, given correct perms."""
    await bot.create_role(server, name="Poi's Admiral")
    muted = await bot.create_role(server, name="Muted", permissions=discord.Permissions(permissions=1115136))
    await make_muted_perms(server, muted)
    await bot.send_message(server, "Hello! I'm a bot invited to the server to make your life a little easier and more fun! Please move the `Yuudachi Kai` role to underneath your Admin role and then move the `Muted` role underneath that so that I can mute people properly! Everything else has been set up already if you gave me the `Administrator` permission. Thanks!")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号