#The bot on my local pc runs but on vps it gives erorr?

1 messages · Page 1 of 1 (latest)

shadow iron
#

i couldnt find any soultion btw the same python version too

#

wtf i unstailled it and reinstalled it and worked

#

wtf fr

#

i have been in this eror for 18 hours straight

tardy raptor
#

pycord isn't related to us

shadow iron
tardy raptor
shadow iron
#

@tardy raptor what should i import bec i have
import discord
from discord.ext import commands, tasks

tardy raptor
#

It is correct

#

There's nothing wrong with your Imports, otherwise you'd get an error

shadow iron
tardy raptor
shadow iron
#

it should pepesweat
intents = discord.Intents.default()
intents.messages = True
or what

#

the ones from discord dev are all on

tardy raptor
#

.intents

burnt saffronBOT
#

Pycord Docs - Intents
Discord API Docs - Gateway Intents

import discord
from discord.ext import commands

# Get specific intents for fine control
intents = discord.Intents()
intents.emojis = True
intents.guilds = True
intents.messages = True  # Required for prefix commands!
...
# Get all non-priveliged intents; this excludes presences, members and message_content 
intents = discord.Intents.default()

# Set priveliged intents: these must be enabled on dev portal
intents.members = True
intents.presences = True
intents.message_content = True  # Required for prefix commands >= 2.0.0b5

# Get all intents; all intents must be enabled on dev portal.
intents = discord.Intents.all()

# Apply intents when creating your bot
bot = commands.bot(prefix="?", intents=intents)
tardy raptor
#

Looks like it's message_content

shadow iron
#

forreall your are a fk life saver brooooooo

rose gazelle
#

messages are part of default intents

#

only presence, members and message content aren't part of default

vocal linden
rose gazelle
#

unnecessary and not recommended

vocal linden
rose gazelle
#

by me*
because its literally pointless
intents should be requested minimally, especially because you need to enable every one in the dev portal else it wont work im p sure

vocal linden
#

and its not pointless since he is their because of missing intents lmao

#

better to just enable all than have to check each time if you need one or not

rose gazelle
#

he doesnt need presences, nor members

vocal linden
#

you dont know that

rose gazelle
#

read up

tardy raptor
#

Toothy is right. You should always request the minimum and needed.

vocal linden
vocal linden
#

like enable all doesnt change anything

#

except facing this issue

#

but that how i think after all

tardy raptor
#

It's kind of a dev "policy" or standard.

#

You're making discord give you resources you don't need.

vocal linden
#

until the bot is certified we dont really care about that