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

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

      1. <legend id='w4RwI'><style id='w4RwI'><dir id='w4RwI'><q id='w4RwI'></q></dir></style></legend>

        • <bdo id='w4RwI'></bdo><ul id='w4RwI'></ul>
        <i id='w4RwI'><tr id='w4RwI'><dt id='w4RwI'><q id='w4RwI'><span id='w4RwI'><b id='w4RwI'><form id='w4RwI'><ins id='w4RwI'></ins><ul id='w4RwI'></ul><sub id='w4RwI'></sub></form><legend id='w4RwI'></legend><bdo id='w4RwI'><pre id='w4RwI'><center id='w4RwI'></center></pre></bdo></b><th id='w4RwI'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='w4RwI'><tfoot id='w4RwI'></tfoot><dl id='w4RwI'><fieldset id='w4RwI'></fieldset></dl></div>
        <tfoot id='w4RwI'></tfoot>
      2. Discord.py:如何修復“事件循環已關閉";

        Discord.py: How to fix quot;event loop is closedquot;(Discord.py:如何修復“事件循環已關閉;)
        <legend id='qSmFy'><style id='qSmFy'><dir id='qSmFy'><q id='qSmFy'></q></dir></style></legend>

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

        <tfoot id='qSmFy'></tfoot>

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

                  <bdo id='qSmFy'></bdo><ul id='qSmFy'></ul>
                  本文介紹了Discord.py:如何修復“事件循環已關閉";的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我是編程新手.我正在嘗試讓我的不和諧機器人打開命令提示符以確認它可以運行,但我收到此錯誤:

                  I am new to programming. I am trying to have my discord bot open up command prompt to confirm it can run, but I am getting this error:

                    File "C:Users---AppDataLocalProgramsPythonPython38-32libasyncioproactor_events.py", line 116, in __del__
                      self.close()
                    File "C:Users---AppDataLocalProgramsPythonPython38-32libasyncioproactor_events.py", line 108, in close
                      self._loop.call_soon(self._call_connection_lost, None)
                    File "C:Users---AppDataLocalProgramsPythonPython38-32libasyncioase_events.py", line 719, in call_soon
                      self._check_closed()
                    File "C:Users---AppDataLocalProgramsPythonPython38-32libasyncioase_events.py", line 508, in _check_closed
                      raise RuntimeError('Event loop is closed')
                  RuntimeError: Event loop is closed
                  [Finished in 0.871s]
                  

                  代碼:

                  import discord
                  from discord.ext import commands
                  
                  client=commands.Bot(command_prefix = '.')
                  
                  @client.event
                  async def on_ready():
                      print('ok')
                  
                  client.run(token)
                  

                  是什么導致了這個錯誤,我該如何解決這個問題?

                  What causes this error, and how can I fix this?

                  經過一些測試,我相信client.run(token)"是導致事件循環關閉"的原因,不知道為什么.

                  after some testing, I believe "client.run(token)" is what is causing "event loop is closed", not sure why.

                  推薦答案

                  我猜你的機器人沒有功能,所以它只是啟動然后關閉 再次,但我不確定.您必須通過例如添加 async def on_message(message) 來測試這一點.

                  I guess your bot has no function, so it just starts and then shuts down again, but I'm not sure. You would have to test this out by for example adding async def on_message(message).

                  通常事件循環是關閉的client.close()client.logout()

                  這篇關于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 - 自動更改角色顏色)

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

                          <tfoot id='G8a9I'></tfoot>
                          • <bdo id='G8a9I'></bdo><ul id='G8a9I'></ul>

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

                            主站蜘蛛池模板: 秋霞电影一区二区 | 97伦理最新伦理 | 国产免费一区二区三区 | 国产精品一区二区久久久久 | 中文字幕不卡 | 福利一区在线观看 | www国产亚洲精品久久网站 | 99视频免费 | 色爱区综合| 欧美一级黄色片在线观看 | 综合色站导航 | 伊人久久精品 | 亚洲字幕在线观看 | 亚洲精品久久久久久一区二区 | 精品欧美一区二区三区久久久 | 国产精品一区在线观看你懂的 | 日日摸日日碰夜夜爽亚洲精品蜜乳 | 欧美精品第一页 | 国产成人精品免费视频大全最热 | 天天干狠狠 | 国产精品电影网 | 久久久久国产精品午夜一区 | 中文字幕在线第一页 | 国产亚洲www | 久久久久国产精品 | 久久久国产精品 | 色综合一区二区三区 | 亚洲精品中文字幕在线观看 | 国产一区二区自拍 | 国产91久久精品一区二区 | 中文字幕在线一区 | 亚洲综合久久久 | 伊人精品久久久久77777 | 伊人一区 | 久久免费观看一级毛片 | 男女午夜激情视频 | 国产精品高清在线 | 日批免费看 | 美日韩中文字幕 | 欧美一区二不卡视频 | 综合久久网 |