I am new to discord python so I don't have idea what is this problem.
It seem like in line 26 there are some problems
I am using replit to make the bot.
This is my code:
import os
import discord
#import io
import random
#import textwrap
#import urllib
#import aiohttp
#import datetime
#import os
from discord.ext import commands
from itertools import cycle
from webserver import keep_alive
client = commands.Bot(command_prefix = ["!$", "m!", "mi!", "m:", "mi:", "miracle:", "Miracle:", "@Miracle#4170"], case_insensitive=True, help_command = None)
keep_alive()
bot = client = commands
@client.event
async def on_ready():
print('Ready')
await client.change_presence(activity=discord.Game(name="Your Server"))
and this is the full error it gives out:
Traceback (most recent call last):
File "main.py", line 26, in <module>
@client.event
AttributeError: module 'discord.ext.commands' has no attribute 'event'
Traceback (most recent call last):
File "main.py", line 26, in <module>
@client.event
AttributeError: module 'discord.ext.commands' has no attribute 'event'