#Application did not respond?

1 messages · Page 1 of 1 (latest)

autumn lagoon
#

Hello im getting this error for no absoulute reason?

tell me if you need the code.

autumn lagoon
#

hold on its 100+ lines in a single command

#

and i fixed all the indent

placid sage
#

I see you're using time.sleep (which you shouldn't do as it blocks the bot process, use asyncio.sleep) but chances are you aren't getting a response in the 3 second time window

#

you can fix this by putting await ctx.defer() at the top of the function, deferring the reply and preventing the interaction from expiring

autumn lagoon
placid sage
#

await asyncio.sleep()

#

is the proper syntax

autumn lagoon
#

it onyl send invalid if i send a shorter text lol

#

alr

#

now im getting this.. i think removing the await (ctx, shash) fix it right?

placid sage
#

yeah

#

idk why you're even doing that

autumn lagoon
#

nvm that didnt fix it i returned that

#

Application Command raised an exception: TypeError: object ApplicationContext can't be used in 'await' expression

#

:/

placid sage
#

what are you doing

#

like await ctx

#

?

#

I told you in your last thread you can't await anything other than an async function call

autumn lagoon
#

cannot import name 'SlashCommandOptionType' from 'discord.enums' (/home/container/.local/lib/python3.10/site-packages/discord/enums.py)Btw im getting this error? Im hosting my bot on a host.

torn island
autumn lagoon
autumn lagoon
torn island
#

do you have something else installed?

grave condor
#

they're probably using the dpy egg

#

as base

#

we should make one officially for pycord maybe

torn island
#

Moin Lala ^^

grave condor
#

sup

autumn lagoon
grave condor
#

but on the other hand, dunno if anyone of us wants to maintain it

autumn lagoon
torn island
#

show your pip list

autumn lagoon
#

uh ok

#

i cant

torn island
#

what do you mean you cant?

grave condor
#

that's the problem with pterodactyl and why we don't support it in many projects

We need more system info to help this one out.
Which pterodactyl version is running
Which egg is used for the server
How is it configured to run the bot

pseudo portal