2.0 miniscord with message content intent

This commit is contained in:
Klemek
2022-09-02 09:38:53 +02:00
parent fffbc08a82
commit 30fb36d61a
4 changed files with 6 additions and 3 deletions
+1
View File
@@ -344,6 +344,7 @@ bot.start() # this bot respond to "|help", "|info" and "|hello"
## Versions ## Versions
* v0.1.0 : Discord v2 API with intents
* v0.0.3 : custom events handling * v0.0.3 : custom events handling
* v0.0.2 : new answer capability * v0.0.2 : new answer capability
* v0.0.1 : initial version * v0.0.1 : initial version
+3 -1
View File
@@ -62,7 +62,9 @@ class Bot(object):
self.games = [f"v{version}", lambda: f"{len(self.guilds)} guilds"] self.games = [f"v{version}", lambda: f"{len(self.guilds)} guilds"]
if self.alias is not None: if self.alias is not None:
self.games += [f"{self.alias}help"] 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.client.bot = self
self.guilds = [] self.guilds = []
self.__register_events() self.__register_events()
+1 -1
View File
@@ -1,2 +1,2 @@
discord.py~=1.7.3 discord.py~=2.0.0
python-dotenv python-dotenv
+1 -1
View File
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
setuptools.setup( setuptools.setup(
name="miniscord-Klemek", name="miniscord-Klemek",
version="0.0.3", version="0.1.0",
author="Klemek", author="Klemek",
description="A minimalist discord bot API", description="A minimalist discord bot API",
long_description=long_description, long_description=long_description,