Overview

Namespaces

  • Budabot
    • Core
      • Modules
    • User
      • Modules
  • None
  • Tyrence
    • Modules

Classes

  • AlienArmorController
  • AlienBioController
  • AlienMiscController
  • AOSpeakController
  • AOUController
  • AXPController
  • BankController
  • BosslootController
  • BroadcastController
  • BuffPerksController
  • CacheController
  • ChatAssistController
  • ChatCheckController
  • ChatLeaderController
  • ChatRallyController
  • ChatSayController
  • ChatTopicController
  • CityWaveController
  • CloakController
  • ClusterController
  • CountdownController
  • DevController
  • DingController
  • EventsController
  • FightController
  • FindOrgController
  • FindPlayerController
  • FunController
  • GitController
  • GuideController
  • GuildController
  • HelpbotController
  • HtmlDecodeController
  • ImplantController
  • ImplantDesignerController
  • InactiveMemberController
  • ItemsController
  • KillOnSightController
  • LevelController
  • LinksController
  • LootListsController
  • MdbController
  • MessageInfoCommandReply
  • MockCommandReply
  • NanoController
  • NewsController
  • NotesController
  • OnlineController
  • OrgHistoryController
  • OrglistController
  • OrgMembersController
  • OSController
  • PlayerHistoryController
  • PlayfieldController
  • PocketbossController
  • PremadeImplantController
  • PrivateChannelController
  • QuoteController
  • RaffleController
  • RaidController
  • RandomController
  • RecipeController
  • RelayController
  • ReputationController
  • ResearchController
  • RunAsController
  • SendTellController
  • ShoppingController
  • SilenceController
  • SkillsController
  • SpiritsController
  • StopwatchController
  • Teamspeak3
  • TeamspeakController
  • TestController
  • TimeController
  • TimerController
  • TimezoneController
  • TowerController
  • TrackerController
  • TrickleController
  • UnixtimeController
  • VoteController
  • WeatherController
  • WhatBuffsController
  • WhereisController
  • WhoisController
  • WhoisOrgController
  • WhompahController
  • Overview
  • Namespace
  • Class

Class TimerController

Authors: - Tyrence (RK2)

Namespace: Budabot\User\Modules
Definecommand(:

command = 'rtimer', accessLevel = 'guild', description = 'Adds a repeating timer', help = 'timers.txt' )


Definecommand(:

command = 'timers', accessLevel = 'guild', description = 'Sets and shows timers', help = 'timers.txt', alias = 'timer' )


Instance: Commands this class contains:
Located at TIMERS_MODULE/TimerController.class.php
Methods summary
public
# setup( )

Setup

public
# changeTimerAlertTimes( $settingName, $oldValue, $newValue, $data )
public
# checkTimers( )

Description("checks

timers and periodically updates chat with time left")

Event("timer(1sec)")

public
# timerCallback( $timer, $alert )
public
# repeatingTimerCallback( $timer, $alert )
public
# sendAlertMessage( $timer, $alert )
public
# rtimerCommand( $message, $channel, $sender, $sendto, $args )

This command handler adds a repeating timer.

This command handler adds a repeating timer.

Handlescommand("rtimer")

Matches("/^(rtimer

add|rtimer) ([a-z0-9]+) ([a-z0-9]+) (.+)$/i")
public
# timersViewCommand( $message, $channel, $sender, $sendto, $args )

Handlescommand("timers")

Matches("/^timers

view (.+)$/i")
public
# timersRemoveCommand( $message, $channel, $sender, $sendto, $args )

Handlescommand("timers")

Matches("/^timers

(rem|del) (.+)$/i")
public
# timersAddCommand( $message, $channel, $sender, $sendto, $args )

Handlescommand("timers")

Matches("/^(timers

add|timers) ([a-z0-9]+)$/i")
add|timers) ([a-z0-9]+) (.+)$/i")
public
# timersListCommand( $message, $channel, $sender, $sendto, $args )

Handlescommand("timers")

Matches("/^timers$/i")

public
# generateAlerts( $sender, $name, $endTime, $alertTimes )
public
# addTimer( $sender, $name, $runTime, $channel, $alerts = null )
public
# add( $name, $owner, $mode, $alerts, $callback, $data = null )
public
# remove( $name )
public
# get( $name )
public
# getAllTimers( )
Properties summary
public $moduleName

Name of the module. Set automatically by module loader.

Name of the module. Set automatically by module loader.

#
public $db

Inject

#
public $chatBot

Inject

#
public $accessManager

Inject

#
public $text

Inject

#
public $util

Inject

#
public $settingManager

Inject

#
public $setting

Inject

#
public $logger

Logger

#
private array $timers
# array()
Budabot 4 Docs API documentation generated by ApiGen