diff --git a/README.md b/README.md index f635e48..8c5a4e8 100644 --- a/README.md +++ b/README.md @@ -344,6 +344,7 @@ bot.start() # this bot respond to "|help", "|info" and "|hello" ## Versions +* v0.1.0 : Discord v2 API with intents * v0.0.3 : custom events handling * v0.0.2 : new answer capability * v0.0.1 : initial version diff --git a/miniscord/_bot.py b/miniscord/_bot.py index 64f9fe0..f23c398 100644 --- a/miniscord/_bot.py +++ b/miniscord/_bot.py @@ -62,7 +62,9 @@ class Bot(object): self.games = [f"v{version}", lambda: f"{len(self.guilds)} guilds"] if self.alias is not None: self.games += [f"{self.alias}help"] - self.client = discord.Client() + intents = discord.Intents.default() + intents.message_content = True + self.client = discord.Client(intents=intents) self.client.bot = self self.guilds = [] self.__register_events() diff --git a/requirements.txt b/requirements.txt index 5feb744..ce823f0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -discord.py~=1.7.3 +discord.py~=2.0.0 python-dotenv diff --git a/setup.py b/setup.py index 891a0aa..76acc6e 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open("README.md", "r") as fh: setuptools.setup( name="miniscord-Klemek", - version="0.0.3", + version="0.1.0", author="Klemek", description="A minimalist discord bot API", long_description=long_description,