rajat_cj

BDFD • WorldTime (/slash cmd)

Sep 18th, 2022
1,447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.57 KB | None | 0 0
  1. $nomention
  2. $try
  3. $textSplit[$message[timezone]; • ]
  4. $time[$splitText[2]]
  5. $if[$hour>12]
  6. $var[h;$sub[$hour;12]]
  7. $var[.;pm]
  8. $else
  9. $var[h;$hour]
  10. $var[.;am]
  11. $endif
  12. $title[🌎 World Time]
  13. $description[**Local :** <t:$getTimestamp:F>]
  14. $addField[📌 **$message[timezone]**;
  15. 🕐 **[$var[h]:$minute\](https://www.google.com/search?q=time+in+$splitText[2])**:$second $var[.] (<t:$getTimestamp:R>)
  16. 🗓️ $day-$month-$year
  17. ]
  18. $catch
  19. $ephemeral
  20. ‼️ Couldn't find the TZ-Code! Make sure you select an option from the prompts and not type the city name yourself!
  21. $endtry
Advertisement
Add Comment
Please, Sign In to add comment