adamm-hf HF Staff commited on
Commit
5650928
·
verified ·
1 Parent(s): f66b11f

fix intents

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -25,7 +25,9 @@ def convert_to_timezone(dt, tz):
25
  return dt.astimezone(tz).strftime("%Y-%m-%d %H:%M:%S %Z")
26
 
27
  DISCORD_TOKEN = os.environ.get("DISCORD_TOKEN", None)
28
- intents = discord.Intents.all()
 
 
29
  bot = commands.Bot(command_prefix='!', intents=intents, max_messages=1000000)
30
 
31
  logger = logging.getLogger(__name__)
 
25
  return dt.astimezone(tz).strftime("%Y-%m-%d %H:%M:%S %Z")
26
 
27
  DISCORD_TOKEN = os.environ.get("DISCORD_TOKEN", None)
28
+ intents = discord.Intents.default()
29
+ intents.message_content = True
30
+ intents.members = True
31
  bot = commands.Bot(command_prefix='!', intents=intents, max_messages=1000000)
32
 
33
  logger = logging.getLogger(__name__)