Skip to content

Instantly share code, notes, and snippets.

@LeslieDanill
Created September 15, 2021 00:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeslieDanill/f1aa0f2fc1bcf95ea7679ad72470dbbd to your computer and use it in GitHub Desktop.
Save LeslieDanill/f1aa0f2fc1bcf95ea7679ad72470dbbd to your computer and use it in GitHub Desktop.
add !pomotimer -ul=moderator -cd=5 $(eval String.raw`if($(eval `$`+`(3)`)='am'){h=$(eval `$`+`(1)`)}else{h=$(eval `$`+`(1)`)+12};m=(Math.ceil($(eval `$`+`(2)`)/5)*5);h*60+m-`)$(eval if($(time UTC "a")='am'){h=$(time UTC "HH")}else{h=$(time UTC "HH")+12};m=(Math.ceil($(time UTC "mm")/5)*5);a=h*60+m)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment