import discord from discord.ext import commands import asyncio from itertools import cycle client = commands.Bot(command_prefix = '/') status = ['LOL', 'YOU ARE', 'GAY'] async def change_status(): await client.wait_until_ready() msgs = cycle(status) while not client.is_closed: current_status = next(msgs) await client.change_presence(game=discord.Game(name=current_status)) await asyncio.sleep(5) @client.event async def on_ready(): print('Bot is running...') @client.command() async def logout(): await client.logout() client.loop.create_task(change_status()) client.run('мой токен') Код import discord from discord.ext import commands import asyncio from itertools import cycle client = commands.Bot(command_prefix = '/') status = ['LOL', 'YOU ARE', 'GAY'] async def change_status(): await client.wait_until_ready() msgs = cycle(status) while not client.is_closed: current_status = next(msgs) await client.change_presence(game=discord.Game(name=current_status)) await asyncio.sleep(5) @client.event async def on_ready(): print('Bot is running...') @client.command() async def logout(): await client.logout() client.loop.create_task(change_status()) client.run('мой токен')