thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: scheduler Plugin  (Read 21817 times)

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
scheduler Plugin
« on: June 07, 2009, 02:56:30 AM »
Description:

This plugin as been made to allow you to easily setup scheduled rcon commands.


Changelog:

07/06/2009 - 0.1.0
 - first public release. hourly/dayly/cron tasks supported.
 - rcon commands supported

07/06/2009 - v0.1.1
- correct spelling
- hours specified in config are now understood in the timezone setup in the main B3 config

27/04/2010 - 1.0
- config error early detection with userfriendly message
- can run bfbc2 commands

28/04/2010 - 1.1
- fix issue with bfbc2 commands arguments
- better handling of command errors

15/11/2010 - 1.2
- now also work for Medal of Honor
- changed config file syntax for bfbc2 and moh (old syntax still works)
- can specify seconds as in the GNU cron syntax

30/05/2011 - 1.2.1
- fix bug in hourly and daily tasks introduced in 1.2

21/08/2011 - 1.3
- can run commands at B3 start/restart
- can enable or disable plugins


Config example:
Code: xml [Select]
<configuration plugin="scheduler">

<!--
You can define as many tasks as you want.
Tasks can be one of : daily, hourly, cron
Each task is composed of at least one rcon command.
 
  Optionnaly for daily task, you can specify hour and minutes.
  Optionnaly for houly task, you can specify minutes.
  Cron task follow the Unix cron syntax. See http://www.google.com/search?q=man+crontab+5
-->

  <daily name="daily1">
    <rcon>bigtext "It's midnight, go to bed kids"</rcon>
    <rcon>bigtext "seriously"</rcon>
  </daily>

 
  <daily name="daily1" hour="2" minutes="41">
    <rcon>bigtext "hi from daily2"</rcon>
  </daily>
 
 
 
  <hourly name="hourly1">
    <rcon>bigtext "hi from hourly1"</rcon>
  </hourly>

  <hourly name="hourly2" minutes="43">
    <rcon>bigtext "hi from hourly2"</rcon>
  </hourly>


 

<cron name="every3m" minutes="*/3" hour="*" day="*" month="*" dow="*">
<rcon>say "^7every3m"</rcon>
</cron>

<cron name="every4h5m" minutes="5" hour="*/4" day="*" month="*" dow="*">
<rcon>say "^7every4h5m"</rcon>
</cron>
 

<cron name="every2day13h45m" minutes="45" hour="13" day="*/2" month="*" dow="*">
<rcon>say "^7every2day13h45m"</rcon>
</cron> 
 

<cron name="newYear" minutes="0" hour="0" day="1" month="1" dow="*">
<rcon>bigtext "Happy new year !"</rcon>
</cron> 
 
<cron name="everyMondayMorningAt7am" minutes="0" hour="7" day="*" month="*" dow="1">
<rcon>bigtext "mondays, pfff...."</rcon>
</cron> 
 
</configuration>



And below is an example for running commands for Frostbite and Frostbite2 servers (BFBC2, MoH, BF3, etc) :
Code: xml [Select]

    <configuration plugin="scheduler">
        <cron name="test1">
            <frostbite command="punkBuster.pb_sv_command">
                <arg>pb_sv_update</arg>
            </frostbite>
        </cron>
        <daily name="daily reboot at 7am" hour="7">
           <frostbite command="admin.say">
                <arg>server shuting down</arg>
                <arg>all</arg>
           </frostbite>
           <frostbite command="admin.shutDown" />
        </daily>
    </configuration>


Download
« Last Edit: September 24, 2012, 12:12:29 AM by Courgette »

Offline Mikobiko

  • Sr. Member
  • ****
  • Posts: 250
Re: scheduler Plugin
« Reply #1 on: June 07, 2009, 08:51:26 AM »
Having some issues getting the task to run correctly. One minor thing I noticed besides my having issues, is dayly is actually spelled daily. Not trying to be mean just letting you know ^-^

Was trying to get the task to run at 1:50 am. Time ran by and the expected event didn't come. If setting it to run hourly I had no issues getting it to say it. Just when trying to specify hours I never got the desired outcome. My cron scheduling is a little rusty tho so posting my config for a second pair of eyes.

Code: [Select]
<configuration plugin="scheduler">

<!--
You can define as many tasks as you want.
Tasks can be one of : dayly, hourly, cron
Each task is composed of at least one rcon command.
  
  Optionnaly for dayly task, you can specify hour and minutes.
  Optionnaly for houly task, you can specify minutes.
  Cron task follow the Unix cron syntax. See http://www.google.com/search?q=man+crontab+5
-->

<cron name="AON"
    minutes="50"
    hour="1"
    day="*"
    month="*"
    dow="*"
    >
<rcon>say "^7Miko Testing"</rcon>
</cron>
  
</configuration>

Log File:
Code: [Select]
090607 01:49:17	BOT    	Starting Cod4Parser server for 68.232.161.167:28960
090607 01:49:17 BOT     --------------------------------------------
090607 01:49:17 BOT     Attempting to connect to database mysql://B3:[email protected]/b3cod4...
090607 01:49:17 BOT     Connected to database
090607 01:49:17 BOT     Game log C:\UserFiles\ADMIN\GameServers\TC11335438548726008231001\Mods\openwarfare\games_mp.log
090607 01:49:17 BOT     Starting bot reading file C:\UserFiles\ADMIN\GameServers\TC11335438548726008231001\Mods\openwarfare\games_mp.log
090607 01:49:17 BOT     Loading Plugin #1 admin [C:\B3\COD4\Training\b3\conf\plugin_admin.xml]
090607 01:49:17 BOT     AdminPlugin: Loading config C:\B3\COD4\Training\b3\conf\plugin_admin.xml for AdminPlugin
090607 01:49:17 DEBUG Register Event: Stop Process: AdminPlugin
090607 01:49:17 DEBUG Register Event: Program Exit: AdminPlugin
090607 01:49:17 BOT     Plugin admin (1.3.4b0 - ThorN) loaded
090607 01:49:17 BOT     Loading Plugin #2 chatlogger [C:\B3\COD4\Training\b3\extplugins\conf\plugin_chatlogger.xml]
090607 01:49:17 INFO Could not find built in plugin chatlogger, trying external plugin directories.
No module named chatlogger
090607 01:49:17 BOT     ChatloggerPlugin: Loading config C:\B3\COD4\Training\b3\extplugins\conf\plugin_chatlogger.xml for ChatloggerPlugin
090607 01:49:17 DEBUG ChatloggerPlugin: Using default value (chatlog) for db_table
090607 01:49:17 DEBUG ChatloggerPlugin: max age : 0 => 0 days
090607 01:49:17 INFO ChatloggerPlugin: chat log messages are kept forever
090607 01:49:17 DEBUG Register Event: Stop Process: ChatloggerPlugin
090607 01:49:17 DEBUG Register Event: Program Exit: ChatloggerPlugin
090607 01:49:17 BOT     Plugin chatlogger (0.2.0 - Courgette) loaded
090607 01:49:17 BOT     Loading Plugin #3 xlrstats [C:\B3\COD4\Training\b3\extplugins\conf\xlrstats.xml]
090607 01:49:17 INFO Could not find built in plugin xlrstats, trying external plugin directories.
No module named xlrstats
090607 01:49:17 BOT     XlrstatsPlugin: Loading config C:\B3\COD4\Training\b3\extplugins\conf\xlrstats.xml for XlrstatsPlugin
090607 01:49:17 DEBUG XlrstatsPlugin: Using default value (1) for settings::minlevel
090607 01:49:17 DEBUG XlrstatsPlugin: Using default value (1000) for settings::defaultskill
090607 01:49:17 DEBUG XlrstatsPlugin: Using default value (16) for settings::Kfactor_high
090607 01:49:17 DEBUG XlrstatsPlugin: Using default value (4) for settings::Kfactor_low
090607 01:49:17 DEBUG XlrstatsPlugin: Using default value (100) for settings::Kswitch_kills
090607 01:49:17 DEBUG XlrstatsPlugin: Using default value (600) for settings::steepness
090607 01:49:17 DEBUG XlrstatsPlugin: Using default value (0.050000) for settings::suicide_penalty_percent
090607 01:49:17 DEBUG XlrstatsPlugin: Using default value (0.100000) for settings::tk_penalty_percent
090607 01:49:17 DEBUG XlrstatsPlugin: Using default value (1.200000) for settings::kill_bonus
090607 01:49:17 DEBUG XlrstatsPlugin: Using default value (70) for settings::prematch_maxtime
090607 01:49:17 DEBUG XlrstatsPlugin: Using default value (xlr_playerstats) for tables::playerstats
090607 01:49:17 DEBUG XlrstatsPlugin: Using default value (xlr_weaponstats) for tables::weaponstats
090607 01:49:17 DEBUG XlrstatsPlugin: Using default value (xlr_weaponusage) for tables::weaponusage
090607 01:49:17 DEBUG XlrstatsPlugin: Using default value (xlr_bodyparts) for tables::bodyparts
090607 01:49:17 DEBUG XlrstatsPlugin: Using default value (xlr_playerbody) for tables::playerbody
090607 01:49:17 DEBUG XlrstatsPlugin: Using default value (xlr_opponents) for tables::opponents
090607 01:49:17 DEBUG XlrstatsPlugin: Using default value (xlr_mapstats) for tables::mapstats
090607 01:49:17 DEBUG XlrstatsPlugin: Using default value (xlr_playermaps) for tables::playermaps
090607 01:49:17 DEBUG Register Event: Stop Process: XlrstatsPlugin
090607 01:49:17 DEBUG Register Event: Program Exit: XlrstatsPlugin
090607 01:49:17 BOT     Plugin xlrstats (0.6.0 - Tim ter Laak) loaded
090607 01:49:17 BOT     Loading Plugin #4 ctime [C:\B3\COD4\Training\b3\extplugins\conf\plugin_ctime.xml]
090607 01:49:17 INFO Could not find built in plugin ctime, trying external plugin directories.
No module named ctime
090607 01:49:17 BOT     CtimePlugin: Loading config C:\B3\COD4\Training\b3\extplugins\conf\plugin_ctime.xml for CtimePlugin
090607 01:49:17 DEBUG Register Event: Stop Process: CtimePlugin
090607 01:49:17 DEBUG Register Event: Program Exit: CtimePlugin
090607 01:49:17 BOT     Plugin ctime (1.0.5 - Anubis) loaded
090607 01:49:17 BOT     Loading Plugin #5 status [C:\B3\COD4\Training\b3\conf\plugin_status.xml]
090607 01:49:17 BOT     StatusPlugin: Loading config C:\B3\COD4\Training\b3\conf\plugin_status.xml for StatusPlugin
090607 01:49:17 VERBOSE Added crontab <bound method StatusPlugin.update of <b3.plugins.status.StatusPlugin instance at 0x0217D3A0>> (35261680) - [0]s -1m -1h -1d -1M -1DOW
090607 01:49:17 DEBUG Register Event: Stop Process: StatusPlugin
090607 01:49:17 DEBUG Register Event: Program Exit: StatusPlugin
090607 01:49:17 BOT     Plugin status (1.2.6 - ThorN) loaded
090607 01:49:17 BOT     Loading Plugin #6 welcome [C:\B3\COD4\Training\b3\conf\plugin_welcome.xml]
090607 01:49:17 BOT     WelcomePlugin: Loading config C:\B3\COD4\Training\b3\conf\plugin_welcome.xml for WelcomePlugin
090607 01:49:17 DEBUG Register Event: Stop Process: WelcomePlugin
090607 01:49:17 DEBUG Register Event: Program Exit: WelcomePlugin
090607 01:49:17 BOT     Plugin welcome (1.0.6 - ThorN) loaded
090607 01:49:17 BOT     Loading Plugin #7 scheduler [C:\B3\COD4\Training\b3\extplugins\conf\scheduler.xml]
090607 01:49:17 INFO Could not find built in plugin scheduler, trying external plugin directories.
No module named scheduler
090607 01:49:17 BOT     SchedulerPlugin: Loading config C:\B3\COD4\Training\b3\extplugins\conf\scheduler.xml for SchedulerPlugin
090607 01:49:17 DEBUG SchedulerPlugin: setting up Task [AON]
090607 01:49:17 DEBUG SchedulerPlugin: rcon : say "^7Miko Testing"
090607 01:49:17 VERBOSE Added crontab <bound method Task.runcommands of <scheduler.Task object at 0x021AA850>> (35301488) - 0s 50m 1h -1d -1M -1DOW
090607 01:49:17 INFO SchedulerPlugin: cron task [AON] loaded
090607 01:49:17 DEBUG SchedulerPlugin: 1 tasks scheduled
090607 01:49:17 DEBUG Register Event: Stop Process: SchedulerPlugin
090607 01:49:17 DEBUG Register Event: Program Exit: SchedulerPlugin
090607 01:49:17 BOT     Plugin scheduler (0.1.0 - Courgette) loaded
090607 01:49:17 VERBOSE 0 cid changed from None to -1
090607 01:49:17 VERBOSE RCON sending (68.232.161.167:28960) say ^0(^3b3^0)^7: ^8www.BigBrotherBot.com ^0(^8b3^0) ^9v1.1.4b [nt] ^9(^3Astridaria^9)^3 ^2[ONLINE]
090607 01:49:17 DEBUG Client Connected: [-1] World - WORLD ({})
090607 01:49:17 DEBUG Storage: getClient <b3.clients.Client object at 0x0207F3D0>
090607 01:49:17 BOT     Client found in storage 1, welcome back World
090607 01:49:17 DEBUG Storage: setClient <b3.clients.Client object at 0x0207F3D0>
090607 01:49:17 DEBUG Storage: setClient data {'time_add': 1236838656, 'time_edit': 1244357357, 'name': 'World', 'group_bits': 0, 'ip': '', 'auto_login': 1, 'greeting': '', 'pbid': 'WORLD', 'connections': 526, 'mask_level': 0, 'guid': 'WORLD', 'id': 1}
090607 01:49:17 DEBUG Client Authorized: [-1] World - WORLD
090607 01:49:17 BOT     Starting Plugin admin
090607 01:49:17 DEBUG Register Event: Say: AdminPlugin
090607 01:49:17 DEBUG Register Event: Private Message: AdminPlugin
090607 01:49:17 DEBUG AdminPlugin: Command "putgroup (None)" registered with cmd_putgroup for level (80, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "rules (r)" registered with cmd_rules for level (0, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "makereg (mr)" registered with cmd_makereg for level (40, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "leveltest (lt)" registered with cmd_leveltest for level (100, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "warn (w)" registered with cmd_warn for level (20, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "warns (None)" registered with cmd_warns for level (20, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "warninfo (wi)" registered with cmd_warninfo for level (20, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "gametype (None)" registered with cmd_gametype for level (40, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "seen (None)" registered with cmd_seen for level (2, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "say (None)" registered with cmd_say for level (100, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "lookup (l)" registered with cmd_lookup for level (40, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "b3 (None)" registered with cmd_b3 for level (100, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "nextmap (None)" registered with cmd_nextmap for level (2, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "baninfo (bi)" registered with cmd_baninfo for level (80, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "find (None)" registered with cmd_find for level (20, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "help (h)" registered with cmd_help for level (0, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "warnclear (wc)" registered with cmd_warnclear for level (80, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "admintest (None)" registered with cmd_admintest for level (100, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "regtest (None)" registered with cmd_regtest for level (1, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "rebuild (None)" registered with cmd_rebuild for level (100, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "maps (None)" registered with cmd_maps for level (2, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "ungroup (None)" registered with cmd_ungroup for level (80, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "unban (None)" registered with cmd_unban for level (80, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "maprotate (None)" registered with cmd_maprotate for level (40, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "status (None)" registered with cmd_status for level (100, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "map (None)" registered with cmd_map for level (40, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "notice (None)" registered with cmd_notice for level (40, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "maprestart (None)" registered with cmd_maprestart for level (40, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "aliases (alias)" registered with cmd_aliases for level (20, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "groups (None)" registered with cmd_groups for level (100, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "warntest (wt)" registered with cmd_warntest for level (100, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "permban (ban)" registered with cmd_permban for level (40, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "spams (None)" registered with cmd_spams for level (20, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "clear (None)" registered with cmd_clear for level (80, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "register (None)" registered with cmd_register for level (0, 0)
090607 01:49:17 DEBUG AdminPlugin: Command "list (None)" registered with cmd_list for level (20, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "reconfig (None)" registered with cmd_reconfig for level (100, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "admins (None)" registered with cmd_admins for level (1, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "time (None)" registered with cmd_time for level (1, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "spam (s)" registered with cmd_spam for level (20, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "scream (None)" registered with cmd_scream for level (40, 100)
090607 01:49:17 DEBUG SELECT * FROM groups WHERE `keyword` = "superadmin" LIMIT 1
090607 01:49:17 DEBUG Storage: getClientsMatching {'&group_bits': 128}
090607 01:49:17 BOT     Starting Plugin chatlogger
090607 01:49:17 DEBUG Register Event: Say: ChatloggerPlugin
090607 01:49:17 DEBUG Register Event: Team Say: ChatloggerPlugin
090607 01:49:17 DEBUG Register Event: Private Message: ChatloggerPlugin
090607 01:49:17 BOT     Starting Plugin xlrstats
090607 01:49:17 DEBUG AdminPlugin: Command "xlrhide (None)" registered with cmd_xlrhide for level (60, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "xlrstats (None)" registered with cmd_xlrstats for level (1, 100)
090607 01:49:17 DEBUG AdminPlugin: Command "xlrtopstats (None)" registered with cmd_xlrtopstats for level (2, 100)
090607 01:49:17 DEBUG Register Event: Client Join Team: XlrstatsPlugin
090607 01:49:17 DEBUG Register Event: Client Kill: XlrstatsPlugin
090607 01:49:17 DEBUG Register Event: Client Team Kill: XlrstatsPlugin
090607 01:49:17 DEBUG Register Event: Client Suicide: XlrstatsPlugin
090607 01:49:17 DEBUG Register Event: Game Round Start: XlrstatsPlugin
090607 01:49:17 DEBUG XlrstatsPlugin: Got client id for WORLD: 1
090607 01:49:17 BOT     Starting Plugin ctime
090607 01:49:17 DEBUG Register Event: Client Authenticated: CtimePlugin
090607 01:49:17 DEBUG Register Event: Client Disconnect: CtimePlugin
090607 01:49:17 DEBUG CtimePlugin: 05:00 CDT => 10:00 UTC
090607 01:49:17 INFO CtimePlugin: everyday at  5: 0 CDT, connection info older than 31 days will be deleted
090607 01:49:17 VERBOSE Added crontab <bound method CtimePlugin.purge of <ctime.CtimePlugin instance at 0x021648C8>> (35302736) - 0s 0m 10h -1d -1M -1DOW
090607 01:49:17 BOT     Starting Plugin status
090607 01:49:17 BOT     Starting Plugin welcome
090607 01:49:17 DEBUG Register Event: Client Authenticated: WelcomePlugin
090607 01:49:17 BOT     Starting Plugin scheduler
090607 01:49:17 BOT     Start reading...
090607 01:50:00 VERBOSE RCON sending (68.232.161.167:28960) status
090607 01:50:01 VERBOSE StatusPlugin: Building XML status
090607 01:50:01 DEBUG StatusPlugin: Writing XML status to C:\B3\Status\COD4_Training_Status.xml
090607 01:50:21 CONSOLE 1542:20 say;1ba6d0262b9a4f36a5c719506d24603e;0;=7Cav=MAJ.Mik0z;Expected task didnt run :( sad
090607 01:50:21 DEBUG No client - attempt join
090607 01:50:21 DEBUG Getting the (PunkBuster) Playerlist
090607 01:50:21 VERBOSE RCON sending (68.232.161.167:28960) PB_SV_PList
090607 01:50:22 VERBOSE connectClient() = {0: {'slot': '1', 'status': 'OK', 'name': '=7Cav=MAJ.Mik0z', 'power': '1', 'ss': '1', 'ip': '76.236.5.1', 'auth': '2.9', 'pbid': '1ba6d0262b9a4f36a5c719506d24603e', 'guid': '1ba6d0262b9a4f36a5c719506d24603e', 'os': 'W', 'port': '28960'}}
090607 01:50:22 DEBUG Client found in status/playerList
090607 01:50:22 DEBUG guid: 1ba6d0262b9a4f36a5c719506d24603e (32), ip: 76.236.5.1
090607 01:50:22 VERBOSE 0 cid changed from None to 0
090607 01:50:22 DEBUG Client Connected: [0] =7Cav=MAJ.Mik0z - 1ba6d0262b9a4f36a5c719506d24603e ({})
090607 01:50:22 DEBUG Storage: getClient <b3.clients.Client object at 0x021AAE10>
090607 01:50:22 BOT     Client found in storage 2, welcome back allies
090607 01:50:22 DEBUG Storage: getClientAlias <b3.clients.Alias object at 0x021AAE90>
090607 01:50:22 DEBUG Storage: setClientAlias <b3.clients.Alias object at 0x021AAE90>
090607 01:50:22 DEBUG Storage: setClientAlias data {'time_edit': 1244357422, 'num_used': 1, 'alias': 'allies', 'client_id': 2, 'time_add': 1244356831, 'id': 1715}
090607 01:50:22 BOT     New alias for 2: allies
090607 01:50:22 DEBUG Storage: setClient <b3.clients.Client object at 0x021AAE10>
090607 01:50:22 DEBUG Storage: setClient data {'time_add': 1236838695, 'time_edit': 1244357422, 'name': '=7Cav=MAJ.Mik0z', 'group_bits': 128, 'ip': '76.236.5.1', 'auto_login': 1, 'greeting': '', 'pbid': '1ba6d0262b9a4f36a5c719506d24603e', 'connections': 276, 'mask_level': 0, 'guid': '1ba6d0262b9a4f36a5c719506d24603e', 'id': 2}
090607 01:50:22 DEBUG Client Authorized: [0] =7Cav=MAJ.Mik0z - 1ba6d0262b9a4f36a5c719506d24603e
090607 01:50:22 VERBOSE Queueing event Client Authenticated <b3.clients.Client object at 0x021AAE10>
090607 01:50:22 VERBOSE Queueing event Say Expected task didnt run :( sad
090607 01:50:22 VERBOSE Parsing Event: Client Authenticated: CtimePlugin
090607 01:50:22 DEBUG CtimePlugin: CTIME CONNECTED: Player =7Cav=MAJ.Mik0z^7 started playing at: 2009-06-07 01:50:22.687000
090607 01:50:22 VERBOSE Parsing Event: Client Authenticated: WelcomePlugin
090607 01:50:22 VERBOSE Parsing Event: Say: AdminPlugin
090607 01:50:22 DEBUG AdminPlugin: OnSay handle 5:"Expected task didnt run :( sad"
090607 01:50:22 VERBOSE Parsing Event: Say: ChatloggerPlugin
090607 01:50:22 DEBUG ChatloggerPlugin: ALL, 2, =7Cav=MAJ.Mik0z, Expected task didnt run :( sad
090607 01:50:22 DEBUG ChatloggerPlugin: query: INSERT INTO chatlog (msg_time, msg_type, client_id, client_name, client_team, msg) VALUES (1244357422, "ALL", 2, "=7Cav=MAJ.Mik0z", -1, "Expected task didnt run :( sad")
090607 01:50:22 DEBUG ChatloggerPlugin: rowcount: 1, id:320762
« Last Edit: June 07, 2009, 12:15:25 PM by Courgette »

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: scheduler Plugin
« Reply #2 on: June 07, 2009, 10:03:27 AM »
Code: xml [Select]
<dayly name="dayly1" hour="1" minutes="50">  
<rcon>say "Mikobiko test"</rcon> 
</dayly>


maybe that would work better?

Offline Mikobiko

  • Sr. Member
  • ****
  • Posts: 250
Re: scheduler Plugin
« Reply #3 on: June 07, 2009, 10:13:05 AM »
I actually gave that a try as well and had no luck. It seemed like perhaps the hour thing was off for me Im not sure. Ill try it again in the morning. About to sleep.

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: scheduler Plugin
« Reply #4 on: June 07, 2009, 12:13:57 PM »
Thanks for your feedback, I learn new words everyday  ;)

Can you try v0.1.1 (see first post), it was probably a timezone issue.

Offline Mikobiko

  • Sr. Member
  • ****
  • Posts: 250
Re: scheduler Plugin
« Reply #5 on: June 07, 2009, 10:11:03 PM »
Just got done testing it and it was triggering at the appropriate time. Everything seemed to work just fine^^

Offline Mikobiko

  • Sr. Member
  • ****
  • Posts: 250
Re: scheduler Plugin
« Reply #6 on: June 07, 2009, 10:19:32 PM »
Question since people took over the server I was working on for a practice lol.

Can I add more than rcon task for an event? Or do I need an event for each action.

IE just adding a second <rcon> under the event.

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: scheduler Plugin
« Reply #7 on: June 07, 2009, 10:26:00 PM »
you can do :
Code: xml [Select]

  <daily name="daily1">
    <rcon>bigtext "It's midnight, go to bed kids"</rcon>
    <rcon>bigtext "seriously"</rcon>
    <rcon>bigtext "^8m'k ?"</rcon>
  </daily>


Offline Anubis

  • Sr. Member
  • ****
  • Posts: 228
    • g4g.pl
Re: scheduler Plugin
« Reply #8 on: June 08, 2009, 12:07:20 AM »
Hah I see you've extended my ConsoleCommand plugin ;) Nicely done.

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: scheduler Plugin
« Reply #9 on: June 08, 2009, 12:14:44 AM »
Thx. To tell the truth, I'm not aware of your ConsoleCommand plugin nor can I find it in the forums...

What does it do ?

Offline Anubis

  • Sr. Member
  • ****
  • Posts: 228
    • g4g.pl
Re: scheduler Plugin
« Reply #10 on: June 08, 2009, 01:14:49 AM »
No worries ;) I'm OK :D
http://www.bigbrotherbot.com/forums/index.php?topic=638.0

I'm glad you've did that you've post as a feedback ;) Somehow I've forgot about it [sorry].

regards

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: scheduler Plugin
« Reply #11 on: June 08, 2009, 08:52:43 AM »
^^ sorry,  I totally forgot that one

Offline Mikobiko

  • Sr. Member
  • ****
  • Posts: 250
Re: scheduler Plugin
« Reply #12 on: June 08, 2009, 09:45:07 AM »
Appears that all 10 servers performed the task requested at the exact time tonight on the dot.

Thanks so much! =D

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: scheduler Plugin
« Reply #13 on: April 27, 2010, 08:39:33 PM »
v1.0 released - allow to run commands on BFBC2 servers

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: scheduler Plugin
« Reply #14 on: April 28, 2010, 07:30:18 PM »
v1.1 released. This is a bugfix release for bfbc2 users

 


Rate this page +1 at Google Search