collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: setting request for !timer  (Read 2188 times)

0 Members and 1 Guest are viewing this topic.

Offline nullerman

  • BeBot User
  • **
  • Posts: 21
  • Karma: +0/-0
setting request for !timer
« on: September 27, 2007, 10:32:53 pm »
it would be nice to get a setting for the !timer command, cus currently it seems like it is spamming alot, now sometimes it is nice, as in timers for mobs and spawns, but, when the timer is used for regular stuff, it seems like it is spamming org chat.

so i was thinking like a commands string like:
"!timer M 8:00:00 big evil buggiman spawning" (command activates the timer function as it is in build 1092)

"!timer N 2:00:00 perk reset"  giver you a 10 min waring, 5 min warning, and a time is now.

/nuller

« Last Edit: September 27, 2007, 10:37:40 pm by nullerman »

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: setting request for !timer
« Reply #1 on: September 28, 2007, 11:12:58 am »
It's on the todo list. Right now you can at least chose between the Default notifies and a LowSpam class which has less notifies. Try /tell botname !set Timer DefaultClass LowSpam. To go back to the old just do /tell botname !set Timer DefaultClass Default.

Both command will only influence new timers, they don't change already running ones.

Future versions of timer will allow the selection of a timer class when you create the timer with the !timer command. Haven't found the time for that yet.

Offline Nogoal

  • BeBot Apprentice
  • ***
  • Posts: 77
  • Karma: +0/-0
Re: setting request for !timer
« Reply #2 on: October 03, 2007, 11:50:47 am »
I changed it to LowSpam but bot keep spamming at 30 15 5 1 .5 ...

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: setting request for !timer
« Reply #3 on: October 03, 2007, 11:59:59 am »
Use the code below to create the notifies you want. I'll try to get around to add the class parameter to the timer GUI soon.

Just add the code into the constructor of the Timer_Core.php or TimerGUI.php, or create some custom module doing just that.
Code: [Select]
$classid = $this -> create_timer_class("AlmostNoSpam", "Timer class that only spams at 5 and 10mins left.");
$nextid = $this -> create_timer_class_entry($classid, -1, 300, "Timer", "has five minutes left");
$nextid = $this -> create_timer_class_entry($classid, $nextid, 600, "Timer", "has ten minutes left");

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: setting request for !timer
« Reply #4 on: October 03, 2007, 12:24:24 pm »
Added timer class as optional first parameter to !timer calls.

!timer lowspam 15m title will create a timer using the lowspam class, !timer 15m title will create a timer using the default class (whichever that is).

Btw if the class name AlmostNoSpam is too long for your taste you can change it to anything you want, as long as it's unique and only contains letters. So your example above would work if you replace the name with just N. Case of the letters doesn't matter.

All you need is to grab the TimerGUI.php linked here.

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 684
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal