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 22877 times)

Offline christoph51

  • Jr. Member
  • **
  • Posts: 45
    • www.thehgh.com
Re: scheduler Plugin
« Reply #30 on: May 30, 2011, 03:48:33 PM »
thanks for the report. This bug should be fixed in v1.2.1. Could you please report if it does on your side ?
I can confirm that it is now working error free, loading my daily tasks and executing them as desired.
Thank you :-)

Offline Freelander

  • XLRstats dev.
  • Dev. Team
  • Hero Member
  • *
  • Posts: 1000
Re: scheduler Plugin
« Reply #31 on: May 30, 2011, 11:57:00 PM »
I recommend you to take a look at Rotation Manager plugin if you haven't seen it yet. Looks like it fits your situation better. http://forum.bigbrotherbot.net/downloads/?sa=view;down=13

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: scheduler Plugin
« Reply #32 on: August 21, 2011, 02:58:42 PM »
v1.3 released

This version allows you to enable or disable any B3 plugin at some predefined time.
It also allows you to schedule tasks to be executed when B3 starts or restarts.

Offline Mariodu62

  • Sr. Member
  • ****
  • Posts: 466
Re: scheduler Plugin
« Reply #33 on: February 13, 2012, 03:08:52 PM »
hi,

Is it possible to send a b3 command like !loadconfig xxxx at 6:00 ?

« Last Edit: February 13, 2012, 03:53:38 PM by Mariodu62 »

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: scheduler Plugin
« Reply #34 on: February 13, 2012, 08:25:32 PM »
no this plugin can only send rcon commands. But the idea is interesting, I guess this could be done.

See https://github.com/courgette/b3-plugin-scheduler/issues/1
If you can find anyone willing to try to implement this feature, please get them to try as I have no time for this at the moment.

Offline juanfdp

  • Newbie
  • *
  • Posts: 3
Re: scheduler Plugin
« Reply #35 on: February 28, 2012, 06:45:08 PM »
v1.3 released

This version allows you to enable or disable any B3 plugin at some predefined time.
It also allows you to schedule tasks to be executed when B3 starts or restarts.

Hi, please can you explain me how to enable or disable plugins???

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: scheduler Plugin
« Reply #36 on: February 28, 2012, 07:10:47 PM »
Hi, please can you explain me how to enable or disable plugins???
I would guess...
Have it issue a !disable adv to disable the adv plugin...
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline Beber888

  • B3 Contrib/Support
  • Sr. Member
  • *
  • Posts: 179
Re: scheduler Plugin
« Reply #37 on: May 13, 2012, 12:49:54 PM »
Hello I have a problem, I add 1 cron per day of the week.
Yerterday I add a second cron on sunday. Viewing the log I'm not sure the first cron of sunday works.

xml :
Quote
   <cron name="TousLesSamediA09H00"
    minutes="00"
    hour="09"
    day="*"
    month="*"
    dow="5"
    >
      <rcon>g_motd "I LOVE ZEBULON!!!"</rcon>
      <rcon>sv_joinmessage "^3Zebulon, le bot dit d'ou tu viens !!"</rcon>
      <rcon>g_gametype "7"</rcon>
   </cron> 




   <cron name="TousLesDimancheA09H00"
    minutes="00"
    hour="09"
    day="*"
    month="*"
    dow="6"
    >
      <rcon>g_motd "THE BEBER ATTITUDE"</rcon>
      <rcon>sv_joinmessage "Bon Dimanche, Good Sunday, Have fun"</rcon>
      <rcon>g_gametype "7"</rcon>
   </cron> 

   <cron name="TousLesDimancheA12H00"
    minutes="00"
    hour="12"
    day="*"
    month="*"
    dow="6"
    >
      <rcon>bigtext "Passage en [MOD] No Stamina"</rcon>
      <rcon>exec nostamina.cfg</rcon>
   </cron> 


Log :

Quote
   <cron name="TousLesSamediA09H00"
    minutes="00"
    hour="09"
    day="*"
    month="*"
    dow="5"
    >
      <rcon>g_motd "I LOVE ZEBULON!!!"</rcon>
      <rcon>sv_joinmessage "^3Zebulon, le bot dit d'ou tu viens !!"</rcon>
      <rcon>g_gametype "7"</rcon>
   </cron> 




   <cron name="TousLesDimancheA09H00"
    minutes="00"
    hour="09"
    day="*"
    month="*"
    dow="6"
    >
      <rcon>g_motd "THE BEBER ATTITUDE"</rcon>
      <rcon>sv_joinmessage "Bon Dimanche, Good Sunday, Have fun"</rcon>
      <rcon>g_gametype "7"</rcon>
   </cron> 

   <cron name="TousLesDimancheA12H00"
    minutes="00"
    hour="12"
    day="*"
    month="*"
    dow="6"
    >
      <rcon>bigtext "Passage en [MOD] No Stamina"</rcon>
      <rcon>exec nostamina.cfg</rcon>
   </cron> 
Python, Php, UrT SourceCode

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Re: scheduler Plugin
« Reply #38 on: May 13, 2012, 02:37:57 PM »
This issue is known and already fixed in the latest b3. See https://github.com/xlr8or/big-brother-bot/issues/68
Which version of b3 are you running ?

Offline Beber888

  • B3 Contrib/Support
  • Sr. Member
  • *
  • Posts: 179
Re: scheduler Plugin
« Reply #39 on: May 13, 2012, 03:28:10 PM »
I use v1.7.1, ok I understand I have to change to v1.8.1 ok thanks
Python, Php, UrT SourceCode

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Re: scheduler Plugin
« Reply #40 on: May 13, 2012, 03:32:52 PM »
Please confirm b3 1.8.1 fixes your issue

Offline Beber888

  • B3 Contrib/Support
  • Sr. Member
  • *
  • Posts: 179
Re: scheduler Plugin
« Reply #41 on: May 13, 2012, 11:08:35 PM »
I just upgrade the bot, It seams to work fine.
I have no error in log I will test realy later...
Python, Php, UrT SourceCode

Offline GeneralFailure

  • Jr. Member
  • **
  • Posts: 34
    • [FPF] FrankenPower FAILURE
Re: scheduler Plugin
« Reply #42 on: September 23, 2012, 10:22:17 PM »
my question is does, the scheduler plugin also bf3?
I wanted to test and I have the following entry in the scheduler.xml.
<cron name="every3m" minutes="*/3">
<frostbite command="admin.yell">
<arg> "mytext" </ arg>
<arg> "10000" </ arg>
<arg> "all" </ arg>
</ frostbite>

but it does nothing ... The plugin works with bf3 not or am I an incorrect entry in the scheduler.xml?

thanks for B3, Your Work

GeneralFailure

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: scheduler Plugin
« Reply #43 on: September 24, 2012, 12:18:42 AM »
it works with BF3 as well.
Can you see the scheduler plugin trying to send your command every 3 minutes in the b3.log file ?
If that command fails you should see the error message in the log as well. If you can't make sense to it, post your b3.log and we'll help.

Also try without using double quotes (") in your args :

Code: xml [Select]

<cron name="every3m" minutes="*/3">
    <frostbite command="admin.yell">
        <arg>my text</arg>
        <arg>10000</arg>
        <arg>all</arg>
    </frostbite>
</cron>

Offline GeneralFailure

  • Jr. Member
  • **
  • Posts: 34
    • [FPF] FrankenPower FAILURE
Re: scheduler Plugin
« Reply #44 on: October 06, 2012, 08:13:03 PM »
Hello Courgette, thx for your answer.

here my scheduler.xml

Code: xml [Select]

<configuration plugin="scheduler">
<cron name="every3m" minutes="*/3" >
<frostbite command="yell">
<arg>my text</arg>
<arg>10</arg>
<arg>all</arg>
</frostbite>

</cron>
</configuration>


if i take a look in the b3.log, i see:

Code: [Select]
121006 20:00:10	BOT    	'www.bigbrotherbot.net (b3) v1.8.3dev2 [posix] [Seda]'
121006 20:00:10 BOT    'Python: 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) \n[GCC 4.4.3]'
121006 20:00:10 BOT    'Default encoding: ascii'
121006 20:00:10 BOT    'Starting Bf3Parser v1.4.1 for server
...
121006 20:00:10 BOT    'Loading Plugin #18 scheduler [/home/failure/b3/b3/extplugins/conf/scheduler.xml]'
121006 20:00:10 INFO 'scheduler is not a built-in plugin (No module named scheduler)'
121006 20:00:10 INFO 'trying external plugin directory : /home/failure/b3/b3/extplugins'
121006 20:00:10 BOT    'SchedulerPlugin: Loading config /home/failure/b3/b3/extplugins/conf/scheduler.xml for SchedulerPlugin'
121006 20:00:10 DEBUG 'SchedulerPlugin: setting up CronTask [every3m]'
121006 20:00:10 ERROR 'SchedulerPlugin: no action found for task every3m'
121006 20:00:10 DEBUG 'SchedulerPlugin: 0 tasks scheduled'
121006 20:00:10 DEBUG 'Register Event: Stop Process: SchedulerPlugin'
121006 20:00:10 DEBUG 'Register Event: Program Exit: SchedulerPlugin'
121006 20:00:10 BOT    'Plugin scheduler (1.3 - Courgette) loaded'

 


Rate this page +1 at Google Search