When ever I run the code I get an error with async, I have imported asyncio to attempt to fix this but the errors keep flooding in
import discord
from discord.ext import commands
from discord.ext.commands import Bot
import asyncio
bot = command.Bot(command_prefix="=")
@bot.event
async def on_ready():
print ("Bot Onine!")
print ("Hello I Am " + bot.user.name)
print ("My ID Is " + bot.user.id)
The error I get:
async def on_ready(): ^ SyntaxError: invalid syntax
Please if anyone knows a fix