<tfoot id='62f3B'></tfoot>
  • <legend id='62f3B'><style id='62f3B'><dir id='62f3B'><q id='62f3B'></q></dir></style></legend>

    <small id='62f3B'></small><noframes id='62f3B'>

    • <bdo id='62f3B'></bdo><ul id='62f3B'></ul>
  • <i id='62f3B'><tr id='62f3B'><dt id='62f3B'><q id='62f3B'><span id='62f3B'><b id='62f3B'><form id='62f3B'><ins id='62f3B'></ins><ul id='62f3B'></ul><sub id='62f3B'></sub></form><legend id='62f3B'></legend><bdo id='62f3B'><pre id='62f3B'><center id='62f3B'></center></pre></bdo></b><th id='62f3B'></th></span></q></dt></tr></i><div id='62f3B'><tfoot id='62f3B'></tfoot><dl id='62f3B'><fieldset id='62f3B'></fieldset></dl></div>

        Discord.py 中的延迟命令

        Latency command in Discord.py(Discord.py 中的延迟命令)

      1. <small id='GPMsP'></small><noframes id='GPMsP'>

        1. <i id='GPMsP'><tr id='GPMsP'><dt id='GPMsP'><q id='GPMsP'><span id='GPMsP'><b id='GPMsP'><form id='GPMsP'><ins id='GPMsP'></ins><ul id='GPMsP'></ul><sub id='GPMsP'></sub></form><legend id='GPMsP'></legend><bdo id='GPMsP'><pre id='GPMsP'><center id='GPMsP'></center></pre></bdo></b><th id='GPMsP'></th></span></q></dt></tr></i><div id='GPMsP'><tfoot id='GPMsP'></tfoot><dl id='GPMsP'><fieldset id='GPMsP'></fieldset></dl></div>

              <bdo id='GPMsP'></bdo><ul id='GPMsP'></ul>
                <tbody id='GPMsP'></tbody>
              • <tfoot id='GPMsP'></tfoot>
                  <legend id='GPMsP'><style id='GPMsP'><dir id='GPMsP'><q id='GPMsP'></q></dir></style></legend>
                  本文介绍了Discord.py 中的延迟命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我查看了很多地方,但找不到使用 discord.py 发出 ping(延迟)命令的方法,如下所示:

                  I've looked in a lot of places and I can't find a way to make a ping (latency) command using discord.py, something like this:

                  @client.command(pass_context=True)
                  async def pong(ctx):
                      # Somehow find 'pingtime'
                      await client.say(pingtime)
                  

                  推荐答案

                  此时你真的应该使用 重写discord.py的分支

                  这将是我使用命令扩展的解决方案.

                  This would be my solution using the commands extension.

                  @bot.command()
                  async def ping(ctx):
                      await ctx.send('Pong! {0}'.format(round(bot.latency, 1)))
                  

                  这篇关于Discord.py 中的延迟命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  【网站声明】本站部分内容来源于互联网,旨在帮助大家更快的解决问题,如果有图片或者内容侵犯了您的权益,请联系我们删除处理,感谢您的支持!

                  相关文档推荐

                  How to make a discord bot that gives roles in Python?(如何制作一个在 Python 中提供角色的不和谐机器人?)
                  Discord bot isn#39;t responding to commands(Discord 机器人没有响应命令)
                  Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“关于我吗?Discord 机器人的功能?(不和谐.py))
                  message.channel.id Discord PY(message.channel.id Discord PY)
                  How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 机器人?)
                  discord.py - Automaticaly Change an Role Color(discord.py - 自动更改角色颜色)
                  <i id='DOBKA'><tr id='DOBKA'><dt id='DOBKA'><q id='DOBKA'><span id='DOBKA'><b id='DOBKA'><form id='DOBKA'><ins id='DOBKA'></ins><ul id='DOBKA'></ul><sub id='DOBKA'></sub></form><legend id='DOBKA'></legend><bdo id='DOBKA'><pre id='DOBKA'><center id='DOBKA'></center></pre></bdo></b><th id='DOBKA'></th></span></q></dt></tr></i><div id='DOBKA'><tfoot id='DOBKA'></tfoot><dl id='DOBKA'><fieldset id='DOBKA'></fieldset></dl></div>
                • <small id='DOBKA'></small><noframes id='DOBKA'>

                • <legend id='DOBKA'><style id='DOBKA'><dir id='DOBKA'><q id='DOBKA'></q></dir></style></legend>
                  <tfoot id='DOBKA'></tfoot>

                      • <bdo id='DOBKA'></bdo><ul id='DOBKA'></ul>
                            <tbody id='DOBKA'></tbody>