Skip to content

Instantly share code, notes, and snippets.

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)
{
"0": "🍅 BEEP BEEP Great work! Time for a quick break. Take 5 minutes to chat, stretch, hydrate, and refocus your intention.",
"5": "🍅 5",
"10": "🍅 10",
"15": "🍅 15",
"20": "🍅 20",
"25": "🍅 25",
}
$(eval ($(urlfetch json https://gist.githubusercontent.com/LeslieDanill/276ef1cf185b368cd23e92bdbd2cdc72/raw/Nightbot-pomotimer-msgs.json))["$(eval (Math.floor(($(time UTC "X")-$(1))/60/5)*5)%30)"])
{
"id" : ["AaronBassettDev",
"AlSweigart",
"AnnaLemontea",
"anthonywritescode",
"cmgriffing",
"CannibalSnacks",
"CodeInPublic",
"coollike",
"crutchcorn",