Raptor123471 / DingoLingo

A Discord music bot written in Python with support for Youtube, SoundCloud, Spotify, Bandcamp, Twitter, and custom files.
GNU General Public License v3.0
279 stars 166 forks source link

I have a problem with intents #131

Open AGithubUs opened 1 year ago

AGithubUs commented 1 year ago

line 13, in bot = commands.Bot(command_prefix=config.BOT_PREFIX, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: BotBase.init() missing 1 required keyword-only argument: 'intents' Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x000001C3362CA3D0>

solaluset commented 1 year ago

Hello. This project is outdated, I suggest you to use my fork.

AGithubUs commented 1 year ago

ok

Karli911 commented 7 months ago

maybe you can do something like this.

intents = discord.Intents.default() intents.members = True #used to let the bot to get info about the user intents.message_content = True #lets the bot read the message contents

bot = commands.Bot(command_prefix=config.BOT_PREFIX,intents=intents, pm_help=True, case_insensitive=True)

this has worked so far for me.