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
|
||||
|
||||
* 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
|
||||
|
||||
+3
-1
@@ -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()
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
discord.py~=1.7.3
|
||||
discord.py~=2.0.0
|
||||
python-dotenv
|
||||
|
||||
Reference in New Issue
Block a user