Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
fix intents
Browse files
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.
|
|
|
|
|
|
|
| 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__)
|