久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

    2. <legend id='uRkuO'><style id='uRkuO'><dir id='uRkuO'><q id='uRkuO'></q></dir></style></legend>

      <tfoot id='uRkuO'></tfoot>
        <bdo id='uRkuO'></bdo><ul id='uRkuO'></ul>

        <i id='uRkuO'><tr id='uRkuO'><dt id='uRkuO'><q id='uRkuO'><span id='uRkuO'><b id='uRkuO'><form id='uRkuO'><ins id='uRkuO'></ins><ul id='uRkuO'></ul><sub id='uRkuO'></sub></form><legend id='uRkuO'></legend><bdo id='uRkuO'><pre id='uRkuO'><center id='uRkuO'></center></pre></bdo></b><th id='uRkuO'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='uRkuO'><tfoot id='uRkuO'></tfoot><dl id='uRkuO'><fieldset id='uRkuO'></fieldset></dl></div>

        是一種對命令使用前綴和 ping 的方法嗎?

        Is the a way to use prefix AND ping for commands?(是一種對命令使用前綴和 ping 的方法嗎?)

        <small id='W6ZaI'></small><noframes id='W6ZaI'>

        <i id='W6ZaI'><tr id='W6ZaI'><dt id='W6ZaI'><q id='W6ZaI'><span id='W6ZaI'><b id='W6ZaI'><form id='W6ZaI'><ins id='W6ZaI'></ins><ul id='W6ZaI'></ul><sub id='W6ZaI'></sub></form><legend id='W6ZaI'></legend><bdo id='W6ZaI'><pre id='W6ZaI'><center id='W6ZaI'></center></pre></bdo></b><th id='W6ZaI'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='W6ZaI'><tfoot id='W6ZaI'></tfoot><dl id='W6ZaI'><fieldset id='W6ZaI'></fieldset></dl></div>
            <tbody id='W6ZaI'></tbody>
          <tfoot id='W6ZaI'></tfoot>
              • <bdo id='W6ZaI'></bdo><ul id='W6ZaI'></ul>
                <legend id='W6ZaI'><style id='W6ZaI'><dir id='W6ZaI'><q id='W6ZaI'></q></dir></style></legend>

                1. 本文介紹了是一種對命令使用前綴和 ping 的方法嗎?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我決定創建一個更有幫助的機器人,并且我想允許以兩種方式激活命令:x. 是默認前綴和 @xubot,也就是 ping 機器人.

                  I've decided to create a much more helpful bot, and I would like to allow the commands to be activated in two ways: x. which is the default prefix and @xubot, aka pinging the bot.

                  我的命令是這樣設置的:

                  My commands are set out like this:

                  
                  # sidenote: this is not an actual command ;)
                  
                  pref = 'x.'
                  client = Bot(command_prefix=pref)
                  
                  @client.command(name="example",
                                 pass_ctx=True)
                  async def example(ctx, type=""):
                      # the "type" parameter is used so i can check if it is "help" and display an embed
                      await ctx.send("Test!")
                  
                  
                  

                  但是,我只能激活帶有前綴 x.

                  However, I can only activate the commands with my prefix, x.

                  我希望 @xubot example 以及 x.example 運行命令.有沒有辦法做到這一點?

                  I would like for @xubot example to run the command, as well as x.example. Is there a way to achieve this?

                  推薦答案

                  通過commands.when_提到_or 用作您的前綴:

                  Pass the commands.when_mentioned_or function as your prefix:

                  from discord.ext.commands import Bot, when_mentioned_or
                  
                  bot = Bot(command_prefix=when_mentioned_or("x."))
                  
                  ...
                  

                  這篇關于是一種對命令使用前綴和 ping 的方法嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 - 自動更改角色顏色)
                  1. <legend id='hC3Qq'><style id='hC3Qq'><dir id='hC3Qq'><q id='hC3Qq'></q></dir></style></legend>

                        <bdo id='hC3Qq'></bdo><ul id='hC3Qq'></ul>
                      • <small id='hC3Qq'></small><noframes id='hC3Qq'>

                        <tfoot id='hC3Qq'></tfoot>
                          <i id='hC3Qq'><tr id='hC3Qq'><dt id='hC3Qq'><q id='hC3Qq'><span id='hC3Qq'><b id='hC3Qq'><form id='hC3Qq'><ins id='hC3Qq'></ins><ul id='hC3Qq'></ul><sub id='hC3Qq'></sub></form><legend id='hC3Qq'></legend><bdo id='hC3Qq'><pre id='hC3Qq'><center id='hC3Qq'></center></pre></bdo></b><th id='hC3Qq'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='hC3Qq'><tfoot id='hC3Qq'></tfoot><dl id='hC3Qq'><fieldset id='hC3Qq'></fieldset></dl></div>

                              <tbody id='hC3Qq'></tbody>

                          • 主站蜘蛛池模板: 风间由美一区二区三区在线观看 | 欧美高清视频一区 | 精品少妇v888av| 在线视频一区二区三区 | 毛片一级片 | 成人精品一区二区 | 亚洲免费人成在线视频观看 | 欧美日韩成人一区二区 | 成人性生交a做片 | aaaaaaa片毛片免费观看 | www.亚洲一区二区三区 | 日本粉嫩一区二区三区视频 | 成人亚洲性情网站www在线观看 | 黄色欧美视频 | 视频一区在线观看 | 一区二区三区在线电影 | 日韩精品视频一区二区三区 | 一区二区三区在线免费观看 | 国精产品一区一区三区免费完 | 国产午夜精品一区二区三区嫩草 | 中文字幕在线观看www | 中文字幕爱爱视频 | 完全免费在线视频 | 中文字幕av在线 | 国产精品视频一区二区三区 | 日韩一区二区三区视频 | 国产精品www | 国产精品一区二区在线播放 | 亚洲系列第一页 | 视频精品一区 | 国产夜恋视频在线观看 | 日韩三级一区 | 欧美日本韩国一区二区 | 欧美精品久久 | 久久久91精品国产一区二区三区 | 91久久久久久久 | 成人av看片| 成人久草| 中文字幕av在线播放 | 99精品欧美一区二区三区综合在线 | 亚洲精品乱码久久久久久按摩 |