moleium/DankMemer-Farmer

new error about missing something intents

asdfawjbhsdhbasjindh opened this issue · 7 comments

sorry if im just dumb or something but when I run the program I get this error immediately.

Traceback (most recent call last):
File "C:\Dank Memer Autofarm\bot.py", line 7, in
client = commands.Bot(command_prefix=prefix, self_bot=True)
TypeError: BotBase.init() missing 1 required keyword-only argument: 'intents'

what version of discord.py have you installed?
Hint:

run pip freeze and in the output you can find the version of discord.py

discord.py==2.0.1

discord.py==2.0.1

In this latest version, the "intents" parameter should be passed inside the client variable (commands.Bot()) in order to run the bot and bot=False parameter seems to be removed & changed in this version?

The only way is to downgrade to version 1.7.3:

pip install discord.py==1.7.3

image
although it says it is logged in its not sending the messages in the channel

You need to send ?farm in the discord channel you specified, not in the terminal.

run with True parameter to enable auto-deposit -> ?farm True

thanks so much it works now

👍🏻