Discord.py 如何从没有bot的服务器上获取关键字?查看我的代码,然后告诉我

Discord.py 如何从没有bot的服务器上获取关键字?查看我的代码,然后告诉我,discord.py,Discord.py,此bot从通道id获取关键字,但仅当bot位于提供通道id的服务器中时,而不是如果我提供了bot不在其中的服务器的通道id,但我现在想从另一台服务器获取关键字如何操作 @client.event async def on_message(message): x = client.get_channel(61993237976252417) b = client.get_channel(623205069084688394) c = client.get_channel(6

此bot从通道id获取关键字,但仅当bot位于提供通道id的服务器中时,而不是如果我提供了bot不在其中的服务器的通道id,但我现在想从另一台服务器获取关键字如何操作

@client.event
async def on_message(message):
    x = client.get_channel(61993237976252417)
    b = client.get_channel(623205069084688394)
    c = client.get_channel(623888107124555776)

    if message.content == 'yy' or message.content == 'y' or message.content == 'yyy' and message.channel is x:

        await b.send('**y**')

        time.sleep(0.5)
    if message.content == '...' or message.content == '..' or message.content == '.' and message.channel is x:
        await b.send('**i**')
        time.sleep(0.5)

    if message.content == 'i' or message.content == 'ii' or message.content == 'iii' and message.channel is x:
        await b.send('**i**')
        time.sleep(0.5)

您的机器人无法在其不是成员的服务器中看到消息。我可以使用selfbot吗?我必须对其进行哪些更改?@user12128410否,因为self bot反对Discord的ToS,并且根据您的代码,考虑到self bot只有在有关键字的情况下才会全天候发送消息,这一点非常明显。