seawolf2357
commited on
Commit
โข
d1d0f02
1
Parent(s):
8270ab4
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,7 @@ logging.basicConfig(level=logging.DEBUG, format='%(asctime)s:%(levelname)s:%(nam
|
|
9 |
|
10 |
# ์ธํ
ํธ ์ค์
|
11 |
intents = discord.Intents.default()
|
|
|
12 |
intents.messages = True
|
13 |
|
14 |
# ์ถ๋ก API ํด๋ผ์ด์ธํธ ์ค์
|
@@ -28,7 +29,7 @@ class MyClient(discord.Client):
|
|
28 |
if message.author == self.user:
|
29 |
logging.info('์์ ์ ๋ฉ์์ง๋ ๋ฌด์ํฉ๋๋ค.')
|
30 |
return
|
31 |
-
|
32 |
# ๋ฉ์์ง ๋ด์ฉ ๋ก๊น
|
33 |
logging.debug(f'Receiving message: {message.content}')
|
34 |
|
|
|
9 |
|
10 |
# ์ธํ
ํธ ์ค์
|
11 |
intents = discord.Intents.default()
|
12 |
+
intents.message_content = True # ๋ฉ์์ง ๋ด์ฉ ์์ ์ธํ
ํธ ํ์ฑํ
|
13 |
intents.messages = True
|
14 |
|
15 |
# ์ถ๋ก API ํด๋ผ์ด์ธํธ ์ค์
|
|
|
29 |
if message.author == self.user:
|
30 |
logging.info('์์ ์ ๋ฉ์์ง๋ ๋ฌด์ํฉ๋๋ค.')
|
31 |
return
|
32 |
+
|
33 |
# ๋ฉ์์ง ๋ด์ฉ ๋ก๊น
|
34 |
logging.debug(f'Receiving message: {message.content}')
|
35 |
|