Jump to content
UBot Underground

[Free Plugin] Time Plugin - Make Your Own Scheduler!


Recommended Posts

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())

  • Like 1
Link to post
Share on other sites
  • 10 months later...
  • Replies 54
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Hello, I am providing this plugin for FREE. This plugin can be helpful for people who wish to make their own scheduler. For example. You can use this plugin to make bot run on every sunday to make web

quick example to show you guys how to make a small scheduler   set(#time to execute, "07:09", "Global") set(#current time, "{$plugin function("time.dll", "$currenthour-12h")}:{$plugin function("time.

Minor update* Changed  category  from "System functions" to "Time functions" Get it here : http://socialcracker.com/ubot/timeplugin/   Here is the updated link : https://drive.google.com/file/d/0B4rg

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...