Bot 在 !help 命令上发送嵌入消息,但它不在代码中,我如何删除它?
Bot sending embed message on !help command but it isn't in code, how I can remove it?
我的 python 不和谐机器人发送 !help 命令但它不在代码中...
我怎样才能删除它?
也许它被导入到代码idk中,它看起来像这样:
http://prnt.sc/oxqj0s
我导入了这个:
导入不和谐
来自 discord.ext 导入命令
导入异步
导入时间
随机导入
从不和谐导入游戏
导入 os
我认为您应该可以使用以下代码摆脱它:
# Imports
import discord
from discord.ext import commands
import asyncio
import time
import random
from discord import Game
import os
# Create the bot with prefix '!'
client = commands.Bot(command_prefix='!')
# Remove the 'help' command
client.remove_command('help')
Discord 机器人在启动时自动创建一个 'help' 命令。当您随后通过键入“!help”调用帮助命令时(因为我使用命令前缀“!”设置了机器人),它会加载内置的帮助命令。代码“client.remove_command('help')”从机器人 'client'.
中删除了帮助命令
我的 python 不和谐机器人发送 !help 命令但它不在代码中...
我怎样才能删除它? 也许它被导入到代码idk中,它看起来像这样: http://prnt.sc/oxqj0s
我导入了这个: 导入不和谐 来自 discord.ext 导入命令 导入异步 导入时间 随机导入 从不和谐导入游戏 导入 os
我认为您应该可以使用以下代码摆脱它:
# Imports
import discord
from discord.ext import commands
import asyncio
import time
import random
from discord import Game
import os
# Create the bot with prefix '!'
client = commands.Bot(command_prefix='!')
# Remove the 'help' command
client.remove_command('help')
Discord 机器人在启动时自动创建一个 'help' 命令。当您随后通过键入“!help”调用帮助命令时(因为我使用命令前缀“!”设置了机器人),它会加载内置的帮助命令。代码“client.remove_command('help')”从机器人 'client'.
中删除了帮助命令