Generation

generate functionFri, 23 Jun 2023

Encontré el error en este código y arreglalo import discord from discord.ext.commands import Bot from discord.ext import commands import asyncio bot = commands.Bot(command_prefix='~') @bot.event async def on_ready(): print("Bot de picazos") contador = 0 @bot.event async def on_reaction_add(reaction, user): if reaction.message.id == "692642502479476736" and user.id != bot.user.id: global contador contador += 1 await bot.edit_message(reaction.message, f"Has picado {contador} picazos") bot.run("MTEyMTQxMTIyMzQxMDQ1ODY2NA.GOWwZ4.r1LPX8tI4APf0k-6W-qXQGy57sIi-4b7oXxnEw") Traceback (most recent call last): Q夼 File "main.py", line 6, in <module> bot = commands. Bot (command_prefix='~') TypeError: BotBase.__init__() missing 1 re quired keyword-only argument: 'intents

import discord from discord.ext.commands import Bot from discord.ext import commands import asyncio bot = commands.Bot(command_prefix='~') @bot.event async def on_ready(): print("Bot de picazos") contador = 0 @bot.event async def on_reaction_add(reaction, user): if reaction.message.id == "692642502479476736" and user.id != bot.user.id: global contador contador += 1 await bot.edit_message(reaction.message, f"Has picado {contador} picazos") bot.run("MTEyMTQxMTIyMzQxMDQ1ODY2NA.GOWwZ4.r1LPX8tI4APf0k-6W-qXQGy57sIi-4b7oXxnEw")

Questions about programming?Chat with your personal AI assistant