2.0 miniscord with message content intent
This commit is contained in:
@@ -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
@@ -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
@@ -1,2 +1,2 @@
|
|||||||
discord.py~=1.7.3
|
discord.py~=2.0.0
|
||||||
python-dotenv
|
python-dotenv
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user