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

<small id='7eAKL'></small><noframes id='7eAKL'>

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

        <bdo id='7eAKL'></bdo><ul id='7eAKL'></ul>
        <tfoot id='7eAKL'></tfoot>

        允許 Discord Rewrite 機(jī)器人響應(yīng)其他機(jī)器人

        Allow Discord Rewrite bot to respond to other bots(允許 Discord Rewrite 機(jī)器人響應(yīng)其他機(jī)器人)
          <bdo id='1J7NO'></bdo><ul id='1J7NO'></ul>
        • <i id='1J7NO'><tr id='1J7NO'><dt id='1J7NO'><q id='1J7NO'><span id='1J7NO'><b id='1J7NO'><form id='1J7NO'><ins id='1J7NO'></ins><ul id='1J7NO'></ul><sub id='1J7NO'></sub></form><legend id='1J7NO'></legend><bdo id='1J7NO'><pre id='1J7NO'><center id='1J7NO'></center></pre></bdo></b><th id='1J7NO'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='1J7NO'><tfoot id='1J7NO'></tfoot><dl id='1J7NO'><fieldset id='1J7NO'></fieldset></dl></div>

                  <tbody id='1J7NO'></tbody>
              1. <legend id='1J7NO'><style id='1J7NO'><dir id='1J7NO'><q id='1J7NO'></q></dir></style></legend>
              2. <tfoot id='1J7NO'></tfoot>

                  <small id='1J7NO'></small><noframes id='1J7NO'>

                  本文介紹了允許 Discord Rewrite 機(jī)器人響應(yīng)其他機(jī)器人的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我有一個(gè) Discord 機(jī)器人和一個(gè)用于 Discord 頻道的 webhook 設(shè)置,以每小時(shí)在 dot 上發(fā)送一個(gè)命令.然而,默認(rèn)情況下,Discord Rewrite 似乎忽略了從其他機(jī)器人發(fā)送的命令.我該如何禁用它?

                  I have a Discord bot and a webhook setup for a Discord channel to send a command every hour on the dot. However it seems that Discord Rewrite by default ignores commands sent from other bots. How do I go about disabling this?

                  我需要在 per-command 函數(shù)或 on_message 函數(shù)上修改某些內(nèi)容嗎?

                  Do I need to modify something on a per-command function or the on_message function?

                  當(dāng)前消息

                  @bot.event
                  async def on_message(message):
                      await bot.process_commands(message)
                  

                  找到解決方案

                  @bot.event
                  async def on_message(message):
                      ctx = await bot.get_context(message)
                      await bot.invoke(ctx)
                  

                  推薦答案

                  嘗試為它添加一個(gè)檢查,例如:

                  try adding a check for it, example :

                  on_message

                  if message.author.bot == True:
                      #Do something
                  

                  命令

                  if ctx.author.bot == True:
                      #Do something
                  

                  這篇關(guān)于允許 Discord Rewrite 機(jī)器人響應(yīng)其他機(jī)器人的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  How to make a discord bot that gives roles in Python?(如何制作一個(gè)在 Python 中提供角色的不和諧機(jī)器人?)
                  Discord bot isn#39;t responding to commands(Discord 機(jī)器人沒(méi)有響應(yīng)命令)
                  Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關(guān)于我嗎?Discord 機(jī)器人的功能?(不和諧.py))
                  message.channel.id Discord PY(message.channel.id Discord PY)
                  How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機(jī)器人?)
                  discord.py - Automaticaly Change an Role Color(discord.py - 自動(dòng)更改角色顏色)

                  <small id='9jZTF'></small><noframes id='9jZTF'>

                    <tbody id='9jZTF'></tbody>
                • <tfoot id='9jZTF'></tfoot>

                          <bdo id='9jZTF'></bdo><ul id='9jZTF'></ul>
                          <legend id='9jZTF'><style id='9jZTF'><dir id='9jZTF'><q id='9jZTF'></q></dir></style></legend>
                          <i id='9jZTF'><tr id='9jZTF'><dt id='9jZTF'><q id='9jZTF'><span id='9jZTF'><b id='9jZTF'><form id='9jZTF'><ins id='9jZTF'></ins><ul id='9jZTF'></ul><sub id='9jZTF'></sub></form><legend id='9jZTF'></legend><bdo id='9jZTF'><pre id='9jZTF'><center id='9jZTF'></center></pre></bdo></b><th id='9jZTF'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='9jZTF'><tfoot id='9jZTF'></tfoot><dl id='9jZTF'><fieldset id='9jZTF'></fieldset></dl></div>
                            主站蜘蛛池模板: 精品欧美二区 | 日本超碰 | www.97zyz.com| 国产精品海角社区在线观看 | 久久亚洲综合 | 国产7777 | 国产精品久久久久久久久久久久冷 | 国产伦精品一区二区三毛 | www.国产精品 | 毛片久久久| 一级一级毛片免费看 | 男女深夜网站 | 黄色片大全在线观看 | 国产99久久精品一区二区永久免费 | 日韩精品影院 | 精品福利在线 | 精品久久久久一区二区国产 | 91视频在线| 日本字幕在线观看 | 97超碰成人| 国产精品久久久久久久久免费樱桃 | 国产成人一区在线 | 亚洲国产高清免费 | 久久久久久久久久久久久久国产 | 久久久久黄 | 成人自拍视频网站 | 久久久久久网站 | 亚洲精品国产a久久久久久 中文字幕一区二区三区四区五区 | 国产免费一区 | 免费国产视频 | 国产一区二区三区在线观看免费 | 欧美一区二区三区久久精品 | 国产精品一区二区三区四区 | 国产精品美女久久久久久久网站 | 国产日韩欧美一区 | 欧美a在线| 91久久网站 | 一区二区日本 | 久久这里只有精品首页 | 97在线播放| 日本亚洲欧美 |