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

<legend id='YTgrp'><style id='YTgrp'><dir id='YTgrp'><q id='YTgrp'></q></dir></style></legend>

      <bdo id='YTgrp'></bdo><ul id='YTgrp'></ul>

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

    <i id='YTgrp'><tr id='YTgrp'><dt id='YTgrp'><q id='YTgrp'><span id='YTgrp'><b id='YTgrp'><form id='YTgrp'><ins id='YTgrp'></ins><ul id='YTgrp'></ul><sub id='YTgrp'></sub></form><legend id='YTgrp'></legend><bdo id='YTgrp'><pre id='YTgrp'><center id='YTgrp'></center></pre></bdo></b><th id='YTgrp'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='YTgrp'><tfoot id='YTgrp'></tfoot><dl id='YTgrp'><fieldset id='YTgrp'></fieldset></dl></div>
  1. <tfoot id='YTgrp'></tfoot>
    1. Discord 機器人沒有響應命令

      Discord bot isn#39;t responding to commands(Discord 機器人沒有響應命令)
        <tbody id='lxJmC'></tbody>

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

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

            <legend id='lxJmC'><style id='lxJmC'><dir id='lxJmC'><q id='lxJmC'></q></dir></style></legend>

              • 本文介紹了Discord 機器人沒有響應命令的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我一直在使用

                import os
                import discord
                from discord.ext import commands
                
                client = commands.Bot(command_prefix = "!")
                
                @client.event
                async def on_ready():
                  await client.change_presence(status=discord.Status.idle, 
                activity=discord.Game(''))
                  print('Successfully logged in as {0.user}'.format(client))
                
                @client.command()
                async def hello(ctx):
                  await ctx.send("Hello! It's great to see you!")
                
                client.run(os.getenv('TOKEN'))
                

                命令代碼.我希望它會回應你好!很高興見到你!"當我說!你好(!=前綴).但它什么也沒返回.甚至沒有錯誤.有誰知道為什么?另外,請不要顯示 discord bot 不響應命令 或 Discord command bot 沒有響應 (python) 因為我都嘗試了,但都沒有成功.

                code for commands. I expected to have it respond "Hello! It's great to see you!" when I said !hello (! = prefix). But it returned nothing. Not even an error. Does anyone know why? Also, please don't show discord bot not responding to commands or Discord command bot doesn't responde (python) because I tried both, and neither worked.

                推薦答案

                因為名聲不好,不能在這里聊天,所以在這里回答.您應該發布完整的代碼以使工作更輕松.

                I cant chat here because of lack of reputation so I answer it here instead. you should post the full code to make the job easier.

                .

                原因1:

                您沒有添加前綴.您需要一個前綴才能使用該命令

                You didn't add a prefix. You need a prefix to use the command

                查看您的客戶端.你已經告訴前綴了嗎?喜歡:

                look onto your client. Did you tell the prefix already? like:

                client = commands.Bot(command_prefix = "-")

                如果是這樣,添加它,它應該可以工作!

                if so, add this and it should work!

                .

                原因2:

                您沒有從 discord.ext 導入命令中導入

                You didn't import from discord.ext import commands

                如果你想使用命令,這很重要,導入它應該可以工作!

                this is important if you want to use commands, import that and it should work!

                .

                原因 3:

                你混淆了 clientbot

                這可能不會發生,但它會發生,你可能會在裝飾器上混淆 clientbot,即 @client.command

                this might not happen but here it goes, You might mix up client or bot on the decorator, which is @client.command

                如果你使用客戶端(如 client = commands.Bot(command_prefix = "-")),請在裝飾器上使用 @client.command,而如果你使用 Bot (bot = commmands.Bot(command_prefix = "-")) 那么你應該在裝飾器上使用 @bot.command.

                if you use client (like client = commands.Bot(command_prefix = "-")), use @client.command on the decorator, while if you use Bot (bot = commmands.Bot(command_prefix = "-")) then you should use @bot.command on the decorator.

                希望這些會有所幫助:D

                Hope these will help :D

                這篇關于Discord 機器人沒有響應命令的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                相關文檔推薦

                How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機器人?)
                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 - 自動更改角色顏色)
                ModuleNotFoundError: No module named #39;cogs#39;(ModuleNotFoundError:沒有名為“cogs的模塊)

                  <tfoot id='04Aov'></tfoot>

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

                          主站蜘蛛池模板: 亚洲色片网站 | 国产99精品 | 欧美一级精品片在线看 | 日本精品一区二区三区视频 | 自拍偷拍中文字幕 | 精品伦精品一区二区三区视频 | 欧美在线一区二区三区 | 夜夜骚| 亚洲精品一区二区三区蜜桃久 | 免费色网址 | 国产在线观看av | 国产日韩一区二区三区 | 久久精品亚洲一区 | av片在线观看网站 | 国产精品18久久久久久白浆动漫 | 一区二区三区在线免费看 | 欧美成人免费在线视频 | 午夜伦理影院 | 99久久精品免费看国产小宝寻花 | 成人h电影在线观看 | 精品成人佐山爱一区二区 | 在线免费激情视频 | 精精国产视频 | 久久久天堂 | 四虎影院在线观看av | 欧美一级欧美一级在线播放 | 中文字幕亚洲一区二区va在线 | 欧美在线日韩 | 国产亚洲精品美女久久久久久久久久 | 91 久久 | 国产农村妇女毛片精品久久麻豆 | 精品综合在线 | 日韩欧美福利视频 | 欧美日韩一区二区三区四区五区 | 91综合在线视频 | 犬夜叉在线观看 | 亚洲第一黄色网 | 亚洲一区二区av在线 | 人成久久 | 亚洲国产成人一区二区 | 国产精久久久 |