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 NewsController

Namespace: Budabot\User\Modules
Definecommand(:

command = 'news', accessLevel = 'member', description = 'Shows news', help = 'news.txt' )


Definecommand(:

command = 'news .+', accessLevel = 'mod', description = 'Adds, removes, stickies or unstickies a news entry', help = 'news.txt' )


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

Setup

public
# getNews( )
public
# logonEvent( $eventObj )

Description("sends

news to org members logging in")

Event("logon")

public
# privateChannelJoinEvent( $eventObj )

Description("sends

news to players joining private channel")

Event("joinpriv")

public
# hasRecentNews( )
public
# newsCommand( $message, $channel, $sender, $sendto )

This command handler shows latest news.

This command handler shows latest news.

Handlescommand("news")

Matches("/^news$/i")

public
# newsAddCommand( $message, $channel, $sender, $sendto, $arr )

This command handler adds a news entry.

This command handler adds a news entry.

Handlescommand("news

.+")

Matches("/^news

add (.+)$/si")
public
# newsRemCommand( $message, $channel, $sender, $sendto, $arr )

This command handler removes a news entry.

This command handler removes a news entry.

Handlescommand("news

.+")

Matches("/^news

rem ([0-9]+)$/i")
public
# stickyCommand( $message, $channel, $sender, $sendto, $arr )

This command handler stickies a news entry.

This command handler stickies a news entry.

Handlescommand("news

.+")

Matches("/^news

sticky ([0-9]+)$/i")
public
# unstickyCommand( $message, $channel, $sender, $sendto, $arr )

This command handler unstickies a news entry.

This command handler unstickies a news entry.

Handlescommand("news

.+")

Matches("/^news

unsticky ([0-9]+)$/i")
public
# getNewsItem( $id )
Properties summary
public $db

Inject

#
public $chatBot

Inject

#
public $settingManager

Inject

#
public $text

Inject

#
public $util

Inject

#
public $moduleName
#
Budabot 4 Docs API documentation generated by ApiGen