Import discord client = discord.Client()

@client.event
async def on_ready():
print('We have logged in as {0.user}'.format(client))

@client.event
async def on_message(message):
if message.author == client.user:
return

if message.content.startswith('console'):

await message.channel.send('Activity')
console = input('Enter: ')

while console != 'exit':

if message.content.startswith('$hello') or console == 'Hello':
print('Print hello')
await message.channel.send('Hello!')

if message.content.startswith('$exit') or console == 'exit':
await message.channel.send("Exit app")
print('Exit')
exit()
break
client.run('OTE2NzkyMzE4MDU1NTUwOTc2.YavTYQ.iul1EvBeZjrWgNUkYi8feMv0Ogs')
что не так!!??

GoldenRose99 GoldenRose99    2   06.12.2021 15:43    0

Другие вопросы по теме Информатика