此机器人从通道ID中获取关键字,但仅当该机器人位于其通道名已指定的服务器中时,如果我给出该机器人不在其中但我想从中获取关键字的服务器中的通道ID,则该机器人就不会获取该通道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)