Этот код прекрасно работает на моем компьютере, но при использовании на сервере-капле он дает мне недопустимую синтаксическую ошибку.Почему я меняю строку F на%, она не сообщает о нужном мне канале.Я не знаю, как это исправить, и буду признателен за любую предоставленную помощь.
@client.event
async def on_message(message):
author = message.author
chan1 = client.get_channel('505801900361515008')
chan2 = client.get_channel('505801944707760138')
chan3 = client.get_channel('506194214309068800')
print (message.content)
if not message.server and message.content.startswith('apply'):
await client.send_message(author, 'Your application has been forwarded to the Department of Studies and Development! Enjoy our anime, and off topic channels while youre around!')
await client.send_message(chan1, f'{author.mention} has applied for membership, so please hurry back with a response! Content: {message.content}')
elif not message.server and message.content.startswith('diplo'):
await client.send_message(author, 'Your message has been forwarded to the Department of Investigation! Enjoy our anime, and off topic channels while youre around!')
await client.send_message(chan2, f'{author.mention} has applied for a diplomat mask, so please hurry back with a response! Content: {message.content}')
elif not message.server and message.content.startswith('req'):
await client.send_message(author, 'Your message has been forwarded to the Department of Resource Procurement! The staffers will react to the message with a green checkmark when its been processed.')
await client.send_message(chan3, f'{author.mention} has made an economic request, so please hurry back with a response! Content: {message.content}')
await client.process_commands(message)