我有一个不协调的机器人,基本上当API返回"here it is“时,它会发送一条消息,但现在API发生了变化,它会发送"here it is”,但它也会发送随机消息,比如:{int:随机数}这里就是 但我的机器人的问题是,它会检查它是否只发送“这里就是”,但现在随机数它就不能工作了,你们能不能帮我解决这个问题,告诉我如何才能让它包含“这里就是”发送消息? function ping(){
console.log("Pinged!");
for(let i in config.GAME_SERVERS){
const gameServer =
我正在使用一个使用python和discord.py的discord机器人。我在discord上启用了TTS,甚至当我使用标记tts=False时,只要我让机器人向通道发送消息,它就会使用tts读出消息。我不知道如何禁用它,因为文档中只简单地说要使用tts=False,这就是我正在做的。因此,在下面的示例中,当输入.ping时,tts读出"Bot says My ping is 10ms“,并向通道发送相同的消息,我希望它只向通道发送消息,而不是读出它。 import discord
from discord.ext import commands
client = command
好吧,我需要将机器人发送的消息的斜体改为粗体,这听起来很简单。但我不知道该怎么做。 邮箱: Discord.js@12.2.0 execute(message) {
const serverQueue = message.client.queue.get(message.guild.id);
return message.channel.send('Check this site for a list of commands.');
}
};
嗨,我如何发送消息到机器人可以在Discord.js v12中发送消息的第一个通道。请帮帮我。这对我不起作用:
client.on("guildCreate", guild => {
let channelID;
let channels = guild.channels;
channelLoop:
for (let c of channels) {
let channelType = c[1].type;
if (channelType === "text") {
c
假设我想让我的机器人在服务器中发送某些东西时发送特定的消息,例如:
something = ["test, something"]
@client.event
async def on_message(message):
if message.author == client.user: return
channel = message.channel
if any(word in message.content.lower() for word in something):
await channel.send("yiker