jam134 commited on
Commit
c2fedea
·
verified ·
1 Parent(s): 7e33c0d

Update bots/Enter_content.py

Browse files
Files changed (1) hide show
  1. bots/Enter_content.py +3 -2
bots/Enter_content.py CHANGED
@@ -4,8 +4,9 @@ import asyncio
4
 
5
  # 設定 intents
6
  intents = discord.Intents.default()
7
- intents.message_content = True
8
- intents.guilds = True
 
9
  bot = commands.Bot(command_prefix='!', intents=intents)
10
 
11
  # 當 bot 準備好時執行
 
4
 
5
  # 設定 intents
6
  intents = discord.Intents.default()
7
+ intents.guilds = True # 讓機器人能夠查看伺服器列表
8
+ intents.members = True # 讓機器人能夠讀取伺服器的成員資訊
9
+ intents.message_content = True # 讓機器人能夠讀取訊息內容(這對於某些指令是必要的)
10
  bot = commands.Bot(command_prefix='!', intents=intents)
11
 
12
  # 當 bot 準備好時執行