seawolf2357 commited on
Commit
d1d0f02
โ€ข
1 Parent(s): 8270ab4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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