Overview

Namespaces

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

Classes

  • AdminController
  • AliasController
  • AltInfo
  • AltsController
  • BanController
  • BuddylistController
  • ColorsController
  • CommandlistController
  • CommandSearchController
  • ConfigController
  • EventlistController
  • HelpController
  • LogsController
  • PlayerLookupController
  • ProfileCommandReply
  • ProfileController
  • SettingsController
  • SQLController
  • SystemController
  • UsageController
  • WhitelistController

Functions

  • read_input
  • Overview
  • Namespace
  • Class

Class AdminController

Namespace: Budabot\Core\Modules
Definecommand(:

command = 'adminlist', accessLevel = 'all', description = 'Shows the list of administrators and moderators', help = 'adminlist.txt', alias = 'admins', defaultStatus = '1' )


Definecommand(:

command = 'admin', accessLevel = 'superadmin', description = 'Add or remove an administrator', help = 'admin.txt', defaultStatus = '1' )


Definecommand(:

command = 'mod', accessLevel = 'admin', description = 'Add or remove a moderator', help = 'mod.txt', defaultStatus = '1' )


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

Setup

This handler is called on bot startup.
public
# adminAddCommand( $message, $channel, $sender, $sendto, $args )

Handlescommand("admin")

Matches("/^admin

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

Handlescommand("mod")

Matches("/^mod

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

Handlescommand("admin")

Matches("/^admin

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

Handlescommand("mod")

Matches("/^mod

rem (.+)$/i")
public
# adminlistCommand( $message, $channel, $sender, $sendto )

Handlescommand("adminlist")

Matches("/^adminlist

all$/i")

Matches("/^adminlist$/i")

public
# checkAdminsEvent( $eventObj )

Defaultstatus("1")

Description("add

administrators and moderators to the buddy list")

Event("connect")

private
# getOnlineStatus( $who )
private
# getAltAdminInfo( $who, $showOfflineAlts )
public
# add( $who, $sender, $sendto, $intlevel, $rank )
public
# remove( $who, $sender, $sendto, $intlevel, $rank )
public
# checkAltsInheritAdmin( $who )
public
# checkAccessLevel( $actor, $actee )
Properties summary
public $moduleName

Name of the module. Set automatically by module loader.

Name of the module. Set automatically by module loader.

#
public $adminManager

Inject

#
public $chatBot

Inject

#
public $buddylistManager

Inject

#
public $accessManager

Inject

#
public $commandAlias

Inject

#
public $text

Inject

#
public $db

Inject

#
public $settingManager

Inject

#
public $altsController

Inject

#
Budabot 4 Docs API documentation generated by ApiGen