I try a bot from aternos

IDK WHY
but my line 13 doesn’t work
I’m really new to this so even if the error is small I wouldn’t have noticed

import discord
from discord.ext import commands
import os
import time
import asyncio
from python_aternos import Client, Lists

# START OF CONFIG 

CHANNELID = ID
DOMAIN = 'SERVER NAME' 
TOKEN = 'TOKEN LOL' 
client = commands.Bot(command_prefix='server ', intents=intents)
at = Client.from_credentials('USER', 'PASSWORD')

ERROR:

raceback (most recent call last):
  File "bot.py", line 13, in <module>
    client = commands.Bot(command_prefix='server ', intents=intents)
NameError: name 'intents' is not defined
 

Is this all of the code?

I don’t see a line where you define the intents variable.

More info about this here:

https://stackoverflow.com/questions/64399714/what-are-intents-in-python

here:
https://stackoverflow.com/questions/64831017/how-do-i-get-the-discord-py-intents-to-work

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.