I am trying to make a discord bot change to online status
I have been using pycharm and terminal. I have tried reordering the code multiple different ways, but here is what I have right now
import discord
from discord.ext import commands
client = commands.Bot(command_prefix=".")
@client.event
async def on_ready():
print('Bot is ready.')
await client.run(bot token)
I also tried these:
import discord
from discord.ext import commands
client = commands.Bot(command_prefix=".")
@client.event
async def on_ready():
print('Bot is ready.')
await client.run(bot token)
on_ready
and
import discord
from discord.ext import commands
client = commands.Bot(command_prefix=".")
@client.event
async def on_ready():
print('Bot is ready.')
await client.run(bot token)
on_ready
I got these errors:
:8: RuntimeWarning: coroutine 'on_ready' was never awaited RuntimeWarning: Enable tracemalloc to get the object allocation traceback
and
SyntaxError: 'await' outside function
Please help me get the bot online
