Automatic !restartscript
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Automatic !restartscript

Started by Zigurds, 19 April, 2004, 16:56:00

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zigurds

Need script for automatic cmd !restartscript, with freely fitting time interval

sorry, bad my language

--------------------------------
owner for Latvian hub ALFA

plop

QuoteOriginally posted by Zigurds
Need script for automatic cmd !restartscript, with freely fitting time interval

sorry, bad my language

--------------------------------
owner for Latvian hub ALFA
this is only posible 2 do with client side scripting.
any hints on the interval??
for example daily/weekly.

plop

* mods pls move this topic 2 the correct place.
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

AlwaysConnected

QuoteOriginally posted by plop
QuoteOriginally posted by Zigurds
Need script for automatic cmd !restartscript, with freely fitting time interval

sorry, bad my language

--------------------------------
owner for Latvian hub ALFA
this is only posible 2 do with client side scripting.
any hints on the interval??
for example daily/weekly.

plop

* mods pls move this topic 2 the correct place.

changed it ;)
thnx plop for notice

Skrollster

to be honest this can be done with ptokax version 0.300 b15.16 and newer...

plop

QuoteOriginally posted by Skrollster
to be honest this can be done with ptokax version 0.300 b15.16 and newer...
i tryd it in the past but the command ended up in the chat all the time. lol
any new feature i'm missing??

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Skrollster

Maybe.. ;) I'll ask ptaczek if it is a public feature or if it will be removed...

Zigurds

I use v330 15.25
Time interval accetable from freely selection, example  1x daily

sorry, bad my language

--------------------------------
owner for Latvian hub ALFA

plop

#7
here is a bcdc script which abuse the 1st mainchat event after midnight 2 restart the scripts running on the hub.
-- abuses mainchat events 2 trigger a daily restart of the scripts running on ptokax.
-- plop

today = os.date("%x")

dcpp:setListener( "chat", "restartscripts",
    function( hub, user, text )
        if os.date("%x") ~= today then
            hub:sendChat( "!restartscripts" )
            today = os.date("%x")
        end
    end
)

DC():PrintDebug( "daily restartscripts loaded!" )
plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

[NL]ZeroX

hmmzz doesn't work clear :(

[string "hublist.lua"]:1: `=' expected near `'


i've eddited a bit, but also the orriginal doesn't work :/

because i've now verlihub and there's a little bug in it to send automatic the hub info to the hublists i need to do this manualy

-- abuses mainchat events 2 trigger a daily restart of the scripts running on ptokax.
-- plop

today = os.date("%M")

dcpp:setListener( "chat", "hublist",
    function( hub, user, text )
        if os.date("%M") ~= today then
            hub:sendChat( "!hublist" )
            today = os.date("%M")
        end
    end
)

DC():PrintDebug( "*** Hublist updateder Loaded! ***" )

or can someone help me make one for sending hub info every 5 minutes

NotRabidWombat

#9
hah!
local retCode = execute("restart2.exe");
if( retCode ~= 0) then
   -- restart failed
else
   -- restart suceeded
end
Get it here:
http://students.dwc.edu/cbarber/restart2.exe

Only for TD4.

*EDIT* - Awwww... school shows me no love. Someone give me a place to post the exe.

-NotRabidWombat


I like childish behavior. Maybe this post will be deleted next.

plop

QuoteOriginally posted by NotRabidWombat
*EDIT* - Awwww... school shows me no love. Someone give me a place to post the exe.

-NotRabidWombat
you gota a pm. lol
i'll place it on my website.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

NotRabidWombat

Got it!
http://barber.no-ip.com/restart2.exe

Someone mirror or feel my wraith!

-NotRabidWombat


I like childish behavior. Maybe this post will be deleted next.

plop

QuoteOriginally posted by NotRabidWombat
Got it!
http://barber.no-ip.com/restart2.exe

Someone mirror or feel my wraith!

-NotRabidWombat
mirrored here.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

NotRabidWombat

Thanks

-NotRabidWombat


I like childish behavior. Maybe this post will be deleted next.

plop

QuoteOriginally posted by NotRabidWombat
Thanks

-NotRabidWombat
yw

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

SMF spam blocked by CleanTalk