deliter 203 Posted March 14, 2016 Report Share Posted March 14, 2016 Since this user doesnt seem to post here anymore,he is some Ubot code to do the functions this plugin has to offer,tested with ubot 4,works fine define $currenthourAMPM { run javascript("function getTimeTwelveHour()\{ var myTime = new Date().getHours() if (myTime ===0)\{ myTime = 12 \} else if (myTime > 12)\{ myTime = myTime - 12 \} return myTime \}") return($eval("getTimeTwelveHour()")) } define $AMorPM { run javascript("function getTimeAMPM()\{ var myTime = new Date().getHours() if (myTime >11)\{ myTime = \"PM\" \} else \{ myTime = \"AM\" \} return myTime \}") return($eval("getTimeAMPM()")) } define $currentHour { return($eval("new Date().getHours()")) } define $currentMinute { return($eval("new Date().getMinutes()")) } define $currentSecond { return($eval("new Date().getSeconds()")) } define $currentyear { return($eval("new Date().getFullYear()")) } define $currentday { return($eval("new Date().getDate()")) } define $currentweekday { run javascript("function getMyDay()\{ var day = \"\" switch (new Date().getDay()) \{ case 0: return \"Sunday\"; break; case 1: return \"Monday\"; break; case 2: return \"Tuesday\"; break; case 3: return \"Wednesday\"; break; case 4: return \"Thursday\"; break; case 5: return \"Friday\"; break; case 6: return \"Saturday\"; break; \} \} ") return($eval(" getMyDay()")) } define $currentmonth { run javascript("function getMyMonth()\{ var day = \"\" switch (new Date().getMonth()) \{ case 0: return \"January\"; break; case 1: return \"February\"; break; case 2: return \"March\"; break; case 3: return \"April\"; break; case 4: return \"May\"; break; case 5: return \"June\"; break; case 6: return \"August\"; break; case 6: return \"September\"; break; case 6: return \"October\"; break; case 6: return \"November\"; break; case 6: return \"December\"; break; \} \} ") return($eval(" getMyMonth()")) } alert($AMorPM()) alert($currentHour()) alert($currentSecond()) alert($currentMinute()) alert($currenthourAMPM()) alert($currentyear()) alert($currentday()) alert($currentweekday()) alert($currentmonth()) 1 Quote Link to post Share on other sites
sbm128 12 Posted February 12, 2017 Report Share Posted February 12, 2017 anyone still have a copy of this?? Seems to have fallen off the radar Quote Link to post Share on other sites
socialcracker 59 Posted February 13, 2017 Author Report Share Posted February 13, 2017 Hi guys,Sorry guys, i hardly use ubot nowadays. I can provide plugin along with source code if anyone is interested to host it. Quote Link to post Share on other sites
socialcracker 59 Posted February 13, 2017 Author Report Share Posted February 13, 2017 You can download the plugin here : https://drive.google.com/file/d/0B4rgUEKPIh7cWjNfUlRxSGtERU0/view?usp=sharing 1 Quote Link to post Share on other sites
sunny9495 42 Posted February 13, 2017 Report Share Posted February 13, 2017 Thanks socialcracker Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.