seawolf2357 commited on
Commit
d1d0f02
Β·
verified Β·
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