Overview

Namespaces

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

Classes

  • AccessLevel
  • Budabot\Core\AccessManager
  • Budabot\Core\AdminManager
  • Budabot\Core\AOChat
  • Budabot\Core\AOChatPacket
  • Budabot\Core\AOChatQueue
  • Budabot\Core\AOExtMsg
  • Budabot\Core\AsyncHttp
  • Budabot\Core\AutoInject
  • Budabot\Core\BotRunner
  • Budabot\Core\Budabot
  • Budabot\Core\BuddylistManager
  • Budabot\Core\CacheManager
  • Budabot\Core\CacheResult
  • Budabot\Core\ClassLoader
  • Budabot\Core\ColorSettingHandler
  • Budabot\Core\CommandAlias
  • Budabot\Core\CommandManager
  • Budabot\Core\ConfigFile
  • Budabot\Core\DB
  • Budabot\Core\DBRow
  • Budabot\Core\EventLoop
  • Budabot\Core\EventManager
  • Budabot\Core\GuildChannelCommandReply
  • Budabot\Core\GuildManager
  • Budabot\Core\HelpManager
  • Budabot\Core\Http
  • Budabot\Core\HttpRequest
  • Budabot\Core\LegacyLogger
  • Budabot\Core\LimitsController
  • Budabot\Core\LoggerWrapper
  • Budabot\Core\MMDBParser
  • Budabot\Core\Modules\AdminController
  • Budabot\Core\Modules\AliasController
  • Budabot\Core\Modules\AltInfo
  • Budabot\Core\Modules\AltsController
  • Budabot\Core\Modules\BanController
  • Budabot\Core\Modules\BuddylistController
  • Budabot\Core\Modules\ColorsController
  • Budabot\Core\Modules\CommandlistController
  • Budabot\Core\Modules\CommandSearchController
  • Budabot\Core\Modules\ConfigController
  • Budabot\Core\Modules\EventlistController
  • Budabot\Core\Modules\HelpController
  • Budabot\Core\Modules\LogsController
  • Budabot\Core\Modules\PlayerLookupController
  • Budabot\Core\Modules\ProfileCommandReply
  • Budabot\Core\Modules\ProfileController
  • Budabot\Core\Modules\SettingsController
  • Budabot\Core\Modules\SQLController
  • Budabot\Core\Modules\SystemController
  • Budabot\Core\Modules\UsageController
  • Budabot\Core\Modules\WhitelistController
  • Budabot\Core\NumberSettingHandler
  • Budabot\Core\OptionsSettingHandler
  • Budabot\Core\PlayerHistory
  • Budabot\Core\PlayerHistoryManager
  • Budabot\Core\PlayerManager
  • Budabot\Core\Preferences
  • Budabot\Core\PrivateChannelCommandReply
  • Budabot\Core\PrivateMessageCommandReply
  • Budabot\Core\Registry
  • Budabot\Core\SettingHandler
  • Budabot\Core\SettingManager
  • Budabot\Core\SettingObject
  • Budabot\Core\SocketManager
  • Budabot\Core\SocketNotifier
  • Budabot\Core\SubcommandManager
  • Budabot\Core\Text
  • Budabot\Core\TextSettingHandler
  • Budabot\Core\Timer
  • Budabot\Core\TimerEvent
  • Budabot\Core\TimeSettingHandler
  • Budabot\Core\Util
  • Budabot\Core\xml
  • Budabot\User\Modules\AlienArmorController
  • Budabot\User\Modules\AlienBioController
  • Budabot\User\Modules\AlienMiscController
  • Budabot\User\Modules\AOSpeakController
  • Budabot\User\Modules\AOUController
  • Budabot\User\Modules\AXPController
  • Budabot\User\Modules\BankController
  • Budabot\User\Modules\BosslootController
  • Budabot\User\Modules\BroadcastController
  • Budabot\User\Modules\BuffPerksController
  • Budabot\User\Modules\CacheController
  • Budabot\User\Modules\ChatAssistController
  • Budabot\User\Modules\ChatCheckController
  • Budabot\User\Modules\ChatLeaderController
  • Budabot\User\Modules\ChatRallyController
  • Budabot\User\Modules\ChatSayController
  • Budabot\User\Modules\ChatTopicController
  • Budabot\User\Modules\CityWaveController
  • Budabot\User\Modules\CloakController
  • Budabot\User\Modules\ClusterController
  • Budabot\User\Modules\CountdownController
  • Budabot\User\Modules\DevController
  • Budabot\User\Modules\DingController
  • Budabot\User\Modules\EventsController
  • Budabot\User\Modules\FightController
  • Budabot\User\Modules\FindOrgController
  • Budabot\User\Modules\FindPlayerController
  • Budabot\User\Modules\FunController
  • Budabot\User\Modules\GitController
  • Budabot\User\Modules\GuideController
  • Budabot\User\Modules\GuildController
  • Budabot\User\Modules\HelpbotController
  • Budabot\User\Modules\HtmlDecodeController
  • Budabot\User\Modules\ImplantController
  • Budabot\User\Modules\ImplantDesignerController
  • Budabot\User\Modules\InactiveMemberController
  • Budabot\User\Modules\ItemsController
  • Budabot\User\Modules\KillOnSightController
  • Budabot\User\Modules\LevelController
  • Budabot\User\Modules\LinksController
  • Budabot\User\Modules\LootListsController
  • Budabot\User\Modules\MdbController
  • Budabot\User\Modules\MessageInfoCommandReply
  • Budabot\User\Modules\MockCommandReply
  • Budabot\User\Modules\NanoController
  • Budabot\User\Modules\NewsController
  • Budabot\User\Modules\NotesController
  • Budabot\User\Modules\OnlineController
  • Budabot\User\Modules\OrgHistoryController
  • Budabot\User\Modules\OrglistController
  • Budabot\User\Modules\OrgMembersController
  • Budabot\User\Modules\OSController
  • Budabot\User\Modules\PlayerHistoryController
  • Budabot\User\Modules\PlayfieldController
  • Budabot\User\Modules\PocketbossController
  • Budabot\User\Modules\PremadeImplantController
  • Budabot\User\Modules\PrivateChannelController
  • Budabot\User\Modules\QuoteController
  • Budabot\User\Modules\RaffleController
  • Budabot\User\Modules\RaidController
  • Budabot\User\Modules\RandomController
  • Budabot\User\Modules\RecipeController
  • Budabot\User\Modules\RelayController
  • Budabot\User\Modules\ReputationController
  • Budabot\User\Modules\ResearchController
  • Budabot\User\Modules\RunAsController
  • Budabot\User\Modules\SendTellController
  • Budabot\User\Modules\ShoppingController
  • Budabot\User\Modules\SilenceController
  • Budabot\User\Modules\SkillsController
  • Budabot\User\Modules\SpiritsController
  • Budabot\User\Modules\StopwatchController
  • Budabot\User\Modules\Teamspeak3
  • Budabot\User\Modules\TeamspeakController
  • Budabot\User\Modules\TestController
  • Budabot\User\Modules\TimeController
  • Budabot\User\Modules\TimerController
  • Budabot\User\Modules\TimezoneController
  • Budabot\User\Modules\TowerController
  • Budabot\User\Modules\TrackerController
  • Budabot\User\Modules\TrickleController
  • Budabot\User\Modules\UnixtimeController
  • Budabot\User\Modules\VoteController
  • Budabot\User\Modules\WeatherController
  • Budabot\User\Modules\WhatBuffsController
  • Budabot\User\Modules\WhereisController
  • Budabot\User\Modules\WhoisController
  • Budabot\User\Modules\WhoisOrgController
  • Budabot\User\Modules\WhompahController
  • Command
  • DefaultStatus
  • DefineCommand
  • Description
  • Event
  • HandlesCommand
  • Help
  • Inject
  • Instance
  • Intoptions
  • Matches
  • Options
  • Setting
  • Setup
  • Type
  • Tyrence\Modules\DemoResponseCommandReply
  • Tyrence\Modules\SameChannelResponseController
  • Visibility

Interfaces

  • Budabot\Core\CommandReply

Exceptions

  • Budabot\Core\InvalidHttpRequest
  • Budabot\Core\SQLException
  • Budabot\Core\StopExecutionException

Functions

  • Budabot\Core\isWindows
  • Budabot\Core\Modules\read_input
  • Overview
  • Namespace
  • Class
  1: <?php
  2: 
  3: namespace Budabot\User\Modules;
  4: 
  5: /**
  6:  * Author:
  7:  *  - Neksus (RK2)
  8:  *  - Mdkdoc420 (RK2)
  9:  *  - Tyrence (RK2)
 10:  *
 11:  * @Instance
 12:  *
 13:  * Commands this controller contains:
 14:  *  @DefineCommand(
 15:  *      command     = 'ding',
 16:  *      accessLevel = 'all',
 17:  *      description = 'Shows a random ding gratz message',
 18:  *      help        = 'fun_module.txt'
 19:  *  )
 20:  */
 21: class DingController {
 22: 
 23:     /**
 24:      * Name of the module.
 25:      * Set automatically by module loader.
 26:      */
 27:     public $moduleName;
 28: 
 29:     /** @Inject */
 30:     public $text;
 31: 
 32:     /** @Inject */
 33:     public $util;
 34: 
 35:     /**
 36:      * @HandlesCommand("ding")
 37:      * @Matches("/^ding$/i")
 38:      */
 39:     public function ding1Command($message, $channel, $sender, $sendto, $args) {
 40:         $dingText = array(
 41:             "Yeah yeah gratz, I would give you a better response but you didn't say what level you dinged.",
 42:             "Hmmm, I really want to know what level you dinged, but gratz anyways nub.",
 43:             "When are you people going to start using me right! Gratz for your level though.",
 44:             "Gratz! But what are we looking at? I need a level next time.");
 45: 
 46:         $sendto->reply($this->util->randomArrayValue($dingText));
 47:     }
 48: 
 49:     /**
 50:      * @HandlesCommand("ding")
 51:      * @Matches("/^ding dong$/i")
 52:      */
 53:     public function ding2Command($message, $channel, $sender, $sendto, $args) {
 54:         $msg =  "Ditch, Bitch!";
 55:         $sendto->reply($msg);
 56:     }
 57: 
 58:     /**
 59:      * @HandlesCommand("ding")
 60:      * @Matches("/^ding ([\-+]?[0-9]+)$/i")
 61:      * @Matches("/^ding ([\-+]?[0-9]+) (.+)$/i")
 62:      */
 63:     public function ding3Command($message, $channel, $sender, $sendto, $args) {
 64:         $level = $args[1];
 65:         if ($level <= 0) {
 66:             $lvl = (int)round(220 - $level);
 67:             $dingText = array(
 68:                 "Reclaim sure is doing a number on you if you're going backwards...",
 69:                 "That sounds like a problem... so how are your skills looking?",
 70:                 "Wtb negative exp kite teams!",
 71:                 "That leaves you with... $lvl more levels until 220, I don't see the problem?",
 72:                 "How the hell did you get to $level?");
 73:         } else if ($level == 1) {
 74:             $dingText = array(
 75:                 "You didn't even start yet...",
 76:                 "Did you somehow start from level 0?",
 77:                 "Dinged from 1 to 1? Congratz");
 78:         } else if ($level == 100) {
 79:             $dingText = array(
 80:                 "Congratz! <red>Level 100<end> - ".$sender." you rock!\n",
 81:                 "Congratulations! Time to twink up for T.I.M!",
 82:                 "Gratz, you're half way to 200. More missions, MORE!",
 83:                 "Woot! Congrats, don't forget to put on your 1k token board.");
 84:         } else if ($level == 150) {
 85:             $dingText = array(
 86:                 "S10 time!!!",
 87:                 "Time to ungimp yourself! Horray!. Congrats =)",
 88:                 "What starts with A, and ends with Z? <green>ALIUMZ!<end>",
 89:                 "Wow, is it that time already? TL 5 really? You sure are moving along! Gratz");
 90:         } else if ($level == 180) {
 91:             $dingText = array(
 92:                 "Congratz! Now go kill some <green>aliumz<end> at S13/28/35!!",
 93:                 "Only 20 more froob levels to go! HOORAH!",
 94:                 "Yay, only 10 more levels until TL 6! Way to go!");
 95:         } else if ($level == 190) {
 96:             $dingText = array(
 97:                 "Wow holy shiznits! You're TL 6 already? Congrats!",
 98:                 "Just a few more steps and you're there buddy, keep it up!",
 99:                 "Almost party time! just a bit more to go ".$sender.". We'll be sure to bring you a cookie!");
100:         } else if ($level == 200) {
101:             $dingText = array(
102:                 "Congratz! The big Two Zero Zero!!! Party at ".$sender."'s place",
103:                 "Best of the best in froob terms, congratulations!",
104:                 "What a day indeed. Finally done with froob levels. Way to go!");
105:         } else if ($level > 200 && $level < 220) {
106:             $dingText = array(
107:                 "Congratz! Just a few more levels to go!",
108:                 "Enough with the dingin you are making the fr00bs feel bad!",
109:                 "Come on save some dings for the rest!");
110:         } else if ($level == 220) {
111:             $dingText = array(
112:                 "Congratz! You have reached the end of the line! No more fun for you :P",
113:                 "Holy shit, you finally made it! What an accomplishment... Congratulations ".$sender.", for reaching a level reserved for the greatest!",
114:                 "I'm going to miss you a great deal, because after this, we no longer can be together ".$sender.". We must part so you can continue getting your research and AI levels done! Farewell!",
115:                 "How was the inferno grind? I'm glad to see you made it through, and congratulations for finally getting the level you well deserved!",
116:                 "Our congratulations, to our newest level 220 member, ".$sender.", for his dedication. We present him with his new honorary rank, Chuck Norris!");
117:         } else if ($level > 220) {
118:             $dingText = array(
119:                 "Umm...no.",
120:                 "You must be high, because that number is too high...",
121:                 "Ha, ha... ha, yeah... no...",
122:                 "You must be a GM or one hell of an exploiter, that number it too high!",
123:                 "Yeah, and I'm Chuck Norris...",
124:                 "Not now, not later, not ever... find a more reasonable level!");
125:         } else {
126:             $lvl = (int)round(220 - $level);
127:             $dingText = array(
128:                 "Ding ding ding... now ding some more!",
129:                 "Keep em coming!",
130:                 "Don't stop now, you're getting there!",
131:                 "Come on, COME ON! Only $lvl more levels to go until 220!");
132:         }
133: 
134:         $sendto->reply($this->util->randomArrayValue($dingText));
135:     }
136: }
137: 
Budabot 4 Docs API documentation generated by ApiGen