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 VoteController

Authors: - Lucier (RK1), - Tyrence (RK2)

Namespace: Budabot\User\Modules
Definecommand(:

command = 'vote', accessLevel = 'all', description = 'View/participate in votes and polls', help = 'vote.txt' )


Instance: Commands this controller contains:
Located at VOTE_MODULE/VoteController.class.php
Methods summary
public
# setup( )

This handler is called on bot startup.

This handler is called on bot startup.

Setup

public
# checkVote( $eventObj )

This event handler checks for votes ending.

This event handler checks for votes ending.

Description("checks

votes and periodically updates chat with time left")

Event("timer(2sec)")

public
# voteCommand( $message, $channel, $sender, $sendto, $args )

This command handler shows votes.

This command handler shows votes.

Handlescommand("vote")

Matches("/^vote$/i")

public
# voteKillCommand( $message, $channel, $sender, $sendto, $args )

This command handler deletes votes.

This command handler deletes votes.

Handlescommand("vote")

Matches("/^vote

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

This command handler removes someones vote from a running vote.

This command handler removes someones vote from a running vote.

Handlescommand("vote")

Matches("/^vote

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

This command handler ends a running vote.

This command handler ends a running vote.

Handlescommand("vote")

Matches("/^vote

end (.*)$/i")
public
# voteShowCommand( $message, $channel, $sender, $sendto, $args )

Handlescommand("vote")

Matches("/^vote

show (.*)$/i")
public
# voteChooseCommand( $message, $channel, $sender, $sendto, $args )

Handlescommand("vote")

Matches("/^vote

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

Handlescommand("vote")

Matches("/^vote

add (.+)$/i")
public
# getVoteBlob( $question )
Constants summary
integer STATUS_CREATED
# 0
integer STATUS_STARTED
# 1
integer STATUS_60_MINUTES_LEFT
# 2
integer STATUS_15_MINUTES_LEFT
# 3
integer STATUS_60_SECONDS_LEFT
# 4
integer STATUS_ENDED
# 9
Properties summary
public $moduleName

Name of the module. Set automatically by module loader.

Name of the module. Set automatically by module loader.

#
public $text

Inject

#
public $db

Inject

#
public $chatBot

Inject

#
public $util

Inject

#
public $settingManager

Inject

#
public $accessManager

Inject

#
private array $votes
# array()
private string $delimiter
# "|"
private string $table
# "vote_<myname>"
Budabot 4 Docs API documentation generated by ApiGen