#Ping command being weird

1 messages · Page 1 of 1 (latest)

swift schooner
#

added and removed code for displaying uptime. that's why it isn't in the workbin. that shouldn't matter though

honest marsh
#

Nothing is wrong with ur ping cmd

#

There r tons of reasons unrelated to your bot to why it's going up

swift schooner
honest marsh
#

It could be that discord is tweaking, or your server/network is doing smth funky, etc

#

+debug round(bot.latency * 1000)

final sequoiaBOT
#
Result
19```
swift schooner
#

i think ill just ignore it for now, but it sucks

honest marsh
#

How long did it take for the message to be sent

swift schooner
#

a second for each

honest marsh
#

Hm

swift schooner
#

it took around the same time every time i ran the cmd

honest marsh
honest marsh
#

What happens if you remove the uptime part

#

Does it fix the issue

swift schooner
#

itr's the same. i added it after i noticed the big spike

honest marsh
#

I doubt it has to do with ur network but

#

Mind if you ping discord's api manually through ur terminal?

#

Sorry not api, I meant discord itself

swift schooner
honest marsh
#

Yea

#

Okay yea it doesn't have anything to do with ur network

#

What version of the lib you're using?

swift schooner
honest marsh
willow moat
#

it's always gonna be the same

#

🫣🫣

honest marsh
#

Judging from bot.latency, it gets it from the websocket connection

willow moat
honest marsh
#

Yea realized

willow moat
#

not a library issue, as everyone would have the same problem

#

so most likely internet problem

honest marsh
willow moat
#

blame discord/your network

swift schooner
#

when I first came across the problem I was at a friends house on my laptop and then checked again once I got home on my PC that's connect to ethernet. Same problem

#

but it still could be though, maybe

honest marsh
#

Smth is probably interfering with the heartbeats then

willow moat
swift schooner
#

it's whatever. i was just curious as to why this could be happening and if anyone else was experiencingt the same. I'll worry about it later

willow moat
#

but most likely

#

read comments

swift schooner
#

thanks for the input though guys

honest marsh
willow moat
honest marsh
#

Even if it's not related, you can tell from their ping stats that there's nothing wrong

#

If that's what u meant by the comments

willow moat
#

as the main reason for those spikes could be packet losses

honest marsh
willow moat
#

if you don't have any problems with ping on VPS, and i

#

so what can be the issue then? user side

honest marsh
#

It could be smth from their bot too

willow moat
#

how the hell can you interfere ws ping

honest marsh
#

pinging is asynchronous right

#

Correct me if I'm wrong

willow moat
#

😭

honest marsh
#

Is it not or what

willow moat
#

it's just a property

honest marsh
#

No like

#

When you ping to discord via the websocket heartbeat

#

I'm not talking about the bot.latency part itself rn

willow moat
#

ofc it is

honest marsh
#

You could easily block the ping heartbeat just by having a codeblock

#

Codeblocks could be one out of many other possibilities

willow moat
honest marsh
#

That depends on how long it would block the pinging for

willow moat
#

maybe

#

so just try to load one cog and test without anything other than $ping