#Slow bot response

1 messages · Page 1 of 1 (latest)

drifting yew
#

I am using the example code provided on the GIthub page. When I ping the bot, the bot doesn't respond until around 3 seconds later. I put in a few print statements and they all happen instantly when I ping the bot, so it seems like line 17 is causing the long pause

naive vault
#

Hey!

That looks to be just slow networking on your side. I do not think there is any information to indicate that it is something with hikari itself (we for sure do not wait 3 seconds to send a message)

Could you please run the bot after changing this line:

bot = hikari.GatewayBot(token="...")

to

bot = hikari.GatewayBot(token="...", logs="TRACE_HIKARI")

and repeat the same asyou did before and send the logs here?

#

@drifting yew

drifting yew
#

Do you want the full logs or just after the bot successfully starts?

naive vault
#

everything pls :)

drifting yew
naive vault
#

yeah, i dont know why, but its taking 3 seconds for discord to handle your request

#

The request is started at the top and then it takes 3.9s for discord to respond

drifting yew
#

So my bot responding to the requestion, sends it to Discord, and then Discord sending the message

#

That's what is taking the most time?

#

RIP

naive vault
#

@young thistle

young thistleBOT
#

Pong!

naive vault
#

yeah, it works instantly for me catThink

drifting yew
#

😭

naive vault
drifting yew
#

I guess it could just be my own computer/connection then?

#

Uh, yeah I can upload it to a vps and see if it's faster

naive vault
#

the 3 seconds exactly is really weird in off itself

naive vault
drifting yew
#

Yeah I have a private server for bot dev

naive vault
#

Mind inviting me to it and my bot?

#

or mind giving me the token and ill host an instance?

#

i want to see if its maybe a faulty discord server

#

@drifting yew :)

mild shore
drifting yew
#

Gimme one sec, middle of a ranked game :p

drifting yew
#

@naive vaultCan't DM

mild shore
#

send an fr

naive vault
#

Got it, dw :)

#

Last thing i can imagine it being is just windows being dumb

drifting yew
#

I restarted comp and it seems to be working at normal speed now :)

naive vault
#

oh, lmaoo

#

nice

#

glad to hear :)

drifting yew
#

Yeah I was confused cause even the startup speed took like 15 seconds. Meanwhile, the Java API I was using took like 5 seconds lol

naive vault
#

Lol

#

windows being windows