Skip to content

Instantly share code, notes, and snippets.

View Nightbot-soclipon-LeslieDanill.json
{
"id" : ["cmgriffing",
"griffingandchill",
"splashley",
"AlexNerdLive",
"roxkstar74",
"Simpathey",
"Matty_TwoShoes",
"rhymu8354",
"where_is_x",
View Nightbot-pomotimer
$(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)"])
View Nightbot-pomotimer-msgs.json
{
"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",
}
View Nightbot-pomostart.txt
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)