久久久久久久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>

                          • 主站蜘蛛池模板: h免费观看 | 亚洲精品一区二区三区蜜桃久 | 国产精品视频免费看 | 2018天天干天天操 | a网站在线观看 | 天堂在线中文 | 国产成人免费视频网站视频社区 | www性色| 看黄在线| 99久久精品国产一区二区三区 | 欧美日韩久久久 | 欧美一区二区三区在线视频 | 久久精品久久久久久 | 午夜欧美a级理论片915影院 | 欧美国产精品一区二区三区 | 欧美一区二区在线观看 | 国产精品高清在线 | 狠狠干美女 | 二区在线视频 | 亚洲一区二区久久久 | 91看片网| 自拍偷拍亚洲视频 | 亚洲欧洲精品一区 | 天天操天天插 | 亚洲精品视频在线观看视频 | 天天摸天天看 | 久久久久久久久久久久久久av | 亚洲女人天堂网 | 亚洲网站在线观看 | 天天躁人人躁人人躁狂躁 | a中文在线视频 | xxxcom在线观看 | 国产精品成人一区二区 | 国产精品精品视频一区二区三区 | 97伦理最新伦理 | 中文字幕福利视频 | 操操日| 成人免费在线播放视频 | 成年视频在线观看 | 国产精品久久久久久亚洲调教 | 中文字幕第一页在线 |