Advertisement
Brucord-Xloxn1296

Ping/Latency Command | By: Xloxn#4050

Sep 10th, 2022 (edited)
1,138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.68 KB | None | 0 0
  1. $c[// If you end up publishing this (even though you might’ve modified it), give me (Xloxn#4050) credit, or else…]
  2.  
  3. $nomention
  4. $async[-]
  5. $var[T;$getTimestamp[ms]]
  6. $var[ID;$sendEmbedMessage[$channelID;;;;**Pinging…**;#2f3136;;;;;;;no;yes]]
  7. $endasync
  8. $await[-]
  9.  
  10. $if[$round[$divide[$sub[$var[ID];$messageID];4194304];0]<=250]
  11. $var[color;#4DAE50]
  12. $elseif[$round[$divide[$sub[$var[ID];$messageID];4194304];0]<=400]
  13. $var[color;#E7B806]
  14. $else
  15. $var[color;#eb4346]
  16. $endif
  17.  
  18. $editMessage[$channelID;$var[ID];;;
  19. Database Latency: `$pingms`
  20. Initial Response: `$round[$divide[$sub[$var[ID];$messageID];4194304];0]ms`
  21. Edited Response: `$sub[$getTimestamp[ms];$var[T]]ms`;$var[color];]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement